Commit 512dd39f3bf3c9bc4b4bb3631fa297b6ed6467a0
1 parent
57ac92af
Exists in
master
and in
22 other branches
cms-controller-test: fix edit for rss
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
app/controllers/my_profile/cms_controller.rb
... | ... | @@ -92,8 +92,10 @@ class CmsController < MyProfileController |
92 | 92 | |
93 | 93 | @article.article_privacy_exceptions = params[:q].split(/,/).map{|n| environment.people.find n.to_i} unless params[:q].nil? |
94 | 94 | |
95 | - @escaped_body = CGI::escapeHTML(@article.body || '') | |
96 | - @escaped_abstract = CGI::escapeHTML(@article.abstract || '') | |
95 | + unless @article.kind_of?(RssFeed) | |
96 | + @escaped_body = CGI::escapeHTML(@article.body || '') | |
97 | + @escaped_abstract = CGI::escapeHTML(@article.abstract || '') | |
98 | + end | |
97 | 99 | |
98 | 100 | @tokenized_children = prepare_to_token_input( |
99 | 101 | profile.members.includes(:articles_with_access).find_all{ |m| | ... | ... |