FIX: Support feeds with `description` as well as `content`
This commit is contained in:
parent
f145060315
commit
ed2e53bb06
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue