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.link
|
||||||
url = i.id if url.blank? || url !~ /^https?\:\/\//
|
url = i.id if url.blank? || url !~ /^https?\:\/\//
|
||||||
|
|
||||||
content = CGI.unescapeHTML(i.content.scrub)
|
content = i.content || i.description
|
||||||
TopicEmbed.import(user, url, i.title, content)
|
if content
|
||||||
|
TopicEmbed.import(user, url, i.title, CGI.unescapeHTML(content.scrub))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue