A platform for community discussion. Free, open, simple.
FIX: TopicEmbed#absolutize_urls was trying to modify a frozen string
romanrizzi55b8620b4333
diff --git a/app/models/topic_embed.rb b/app/models/topic_embed.rbindex b71726d4134..15922f7c4cd 100644--- a/app/models/topic_embed.rb+++ b/app/models/topic_embed.rb@@ -192,7 +192,7 @@ class TopicEmbed < ActiveRecord::Basereturn contentsendprefix = "#{uri.scheme}://#{uri.host}"- prefix << ":#{uri.port}" if uri.port != 80 && uri.port != 443+ prefix += ":#{uri.port}" if uri.port != 80 && uri.port != 443fragment = Nokogiri::HTML.fragment("<div>#{contents}</div>")fragment.css('a').each do |a|