FIX: TopicEmbed#absolutize_urls was trying to modify a frozen string
This commit is contained in:
parent
3ae26c6c59
commit
55b8620b43
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue