mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 02:48:28 +08:00
Fix modifying frozen strings error.
This commit is contained in:
@ -36,7 +36,7 @@ class TopicEmbed < ActiveRecord::Base
|
||||
if SiteSetting.embed_truncate
|
||||
contents = first_paragraph_from(contents)
|
||||
end
|
||||
contents ||= ''
|
||||
contents ||= +''
|
||||
contents << imported_from_html(url)
|
||||
|
||||
url = normalize_url(url)
|
||||
|
Reference in New Issue
Block a user