lib/onebox/engine/giphy_onebox.rb in onebox-1.8.79 vs lib/onebox/engine/giphy_onebox.rb in onebox-1.8.80
- old
+ new
@@ -7,14 +7,13 @@
matches_regexp(/^https?:\/\/(giphy\.com\/gifs|gph\.is)\//)
always_https
def to_html
oembed = get_oembed
- escaped_url = ::Onebox::Helpers.normalize_url_for_output(oembed[:url])
<<-HTML
- <a href="#{escaped_url}" target="_blank" class="onebox">
- <img src="#{escaped_url}" width="#{oembed[:width]}" height="#{oembed[:height]}" #{Helpers.title_attr(oembed)}>
+ <a href="#{oembed.url}" target="_blank" class="onebox">
+ <img src="#{oembed.url}" width="#{oembed.width}" height="#{oembed.height}" #{oembed.title_attr}>
</a>
HTML
end
end