mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Support feeds with description as well as content
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user