FIX: TopicEmbed#absolutize_urls was trying to modify a frozen string

This commit is contained in:
romanrizzi 2020-03-25 12:57:31 -03:00
parent 3ae26c6c59
commit 55b8620b43
1 changed files with 1 additions and 1 deletions

View File

@ -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("<div>#{contents}</div>")
fragment.css('a').each do |a|