diff --git a/app/jobs/scheduled/poll_feed.rb b/app/jobs/scheduled/poll_feed.rb index 2c8d9eb34ac..8909c9987e7 100644 --- a/app/jobs/scheduled/poll_feed.rb +++ b/app/jobs/scheduled/poll_feed.rb @@ -32,8 +32,10 @@ module Jobs url = i.link url = i.id if url.blank? || url !~ /^https?\:\/\// - content = CGI.unescapeHTML(i.content.scrub) - TopicEmbed.import(user, url, i.title, content) + content = i.content || i.description + if content + TopicEmbed.import(user, url, i.title, CGI.unescapeHTML(content.scrub)) + end end end