Merge pull request #3456 from 5minpause/patch-1

Changes RSS item creation to prevent encoding errors
This commit is contained in:
Régis Hanol 2015-08-14 18:19:58 +02:00
commit a47370fc52
1 changed files with 6 additions and 2 deletions

View File

@ -86,11 +86,15 @@ module Jobs
end end
def content def content
@article_rss_item.content || @article_rss_item.description if @article_rss_item.content
@article_rss_item.content.scrub
else
@article_rss_item.description.scrub
end
end end
def title def title
@article_rss_item.title @article_rss_item.title.scrub
end end
def user def user