FIX: Support feeds with `description` as well as `content`

This commit is contained in:
Robin Ward 2014-01-02 14:29:27 -05:00
parent f145060315
commit ed2e53bb06
1 changed files with 4 additions and 2 deletions

View File

@ -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