Skip to content

A platform for community discussion. Free, open, simple.

Revert "FIX: Use #dup instead of #+@ since content could be an instance of Nokogiri::XML::Element."

romanrizzid01c938e1a8b
diff --git a/app/models/topic_embed.rb b/app/models/topic_embed.rb
index 8219e30e834..973b4896c51 100644
--- a/app/models/topic_embed.rb
+++ b/app/models/topic_embed.rb
@@ -37,7 +37,7 @@ class TopicEmbed < ActiveRecord::Base
contents = first_paragraph_from(contents)
end
contents ||= ''
- contents = contents.dup << imported_from_html(url)
+ contents = +contents << imported_from_html(url)
url = normalize_url(url)