From 55b8620b4333dd616400803cdfe580cef3ea9630 Mon Sep 17 00:00:00 2001 From: romanrizzi Date: Wed, 25 Mar 2020 12:57:31 -0300 Subject: [PATCH] FIX: TopicEmbed#absolutize_urls was trying to modify a frozen string --- 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 b71726d4134..15922f7c4cd 100644 --- a/app/models/topic_embed.rb +++ b/app/models/topic_embed.rb @@ -192,7 +192,7 @@ class TopicEmbed < ActiveRecord::Base return contents end prefix = "#{uri.scheme}://#{uri.host}" - prefix << ":#{uri.port}" if uri.port != 80 && uri.port != 443 + prefix += ":#{uri.port}" if uri.port != 80 && uri.port != 443 fragment = Nokogiri::HTML.fragment("
#{contents}
") fragment.css('a').each do |a|