mirror of
https://github.com/discourse/discourse.git
synced 2025-04-17 00:39:31 +08:00
Merge pull request #4061 from tgxworld/fix_feed_poll
FIX: RSS description might be `nil`.
This commit is contained in:
commit
607901cf9d
@ -86,11 +86,7 @@ module Jobs
|
||||
end
|
||||
|
||||
def content
|
||||
if @article_rss_item.content
|
||||
@article_rss_item.content.scrub
|
||||
else
|
||||
@article_rss_item.description.scrub
|
||||
end
|
||||
@article_rss_item.content.try(:scrub) || @article_rss_item.description.try(:scrub)
|
||||
end
|
||||
|
||||
def title
|
||||
|
Loading…
x
Reference in New Issue
Block a user