From d01c938e1a8b5f96e16043aa8ec2aeeaee1be910 Mon Sep 17 00:00:00 2001 From: romanrizzi Date: Fri, 9 Aug 2019 11:35:22 -0300 Subject: [PATCH] Revert "FIX: Use #dup instead of #+@ since content could be an instance of Nokogiri::XML::Element." This reverts commit 50afe59306ec41a4fd74b01ca001734840adca8d. --- app/models/topic_embed.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)