mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Merge pull request #3456 from 5minpause/patch-1
Changes RSS item creation to prevent encoding errors
This commit is contained in:
commit
a47370fc52
1 changed files with 6 additions and 2 deletions
|
@ -86,11 +86,15 @@ module Jobs
|
|||
end
|
||||
|
||||
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
|
||||
|
||||
def title
|
||||
@article_rss_item.title
|
||||
@article_rss_item.title.scrub
|
||||
end
|
||||
|
||||
def user
|
||||
|
|
Loading…
Reference in a new issue