mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-10 14:04:35 -04:00
FIX: Support feeds with description
as well as content
This commit is contained in:
parent
f145060315
commit
ed2e53bb06
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue