mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
FIX: Sometimes contents
is nil, don't break in that case.
This commit is contained in:
parent
942f18143c
commit
edae9d7ad9
@ -20,6 +20,7 @@ class TopicEmbed < ActiveRecord::Base
|
||||
if SiteSetting.embed_truncate
|
||||
contents = first_paragraph_from(contents)
|
||||
end
|
||||
contents ||= ''
|
||||
contents << imported_from_html(url)
|
||||
|
||||
url = normalize_url(url)
|
||||
|
Loading…
x
Reference in New Issue
Block a user