Merge pull request #3456 from 5minpause/patch-1
Changes RSS item creation to prevent encoding errors
This commit is contained in:
commit
a47370fc52
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue