mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-27 23:29:52 -04:00
FIX: Sometimes contents
is nil, don't break in that case.
This commit is contained in:
parent
942f18143c
commit
edae9d7ad9
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue