mirror of
https://github.com/discourse/discourse.git
synced 2025-06-17 07:42:31 +08:00
Revert "FIX: Use #dup instead of #+@ since content could be an instance of Nokogiri::XML::Element."
This reverts commit 50afe59306ec41a4fd74b01ca001734840adca8d.
This commit is contained in:
@ -37,7 +37,7 @@ class TopicEmbed < ActiveRecord::Base
|
|||||||
contents = first_paragraph_from(contents)
|
contents = first_paragraph_from(contents)
|
||||||
end
|
end
|
||||||
contents ||= ''
|
contents ||= ''
|
||||||
contents = contents.dup << imported_from_html(url)
|
contents = +contents << imported_from_html(url)
|
||||||
|
|
||||||
url = normalize_url(url)
|
url = normalize_url(url)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user