lib/onebox/engine/giphy_onebox.rb in onebox-1.8.4 vs lib/onebox/engine/giphy_onebox.rb in onebox-1.8.5
- old
+ new
@@ -8,14 +8,13 @@
always_https
def to_html
oembed = get_oembed
escaped_url = ::Onebox::Helpers.normalize_url_for_output(oembed[:url])
- escaped_src = ::Onebox::Helpers.normalize_url_for_output(oembed[:image])
<<-HTML
<a href="#{escaped_url}" target="_blank">
- <img src="#{escaped_src}" width="#{oembed[:width]}" height="#{oembed[:height]}" #{Helpers.title_attr(oembed)}>
+ <img src="#{escaped_url}" width="#{oembed[:width]}" height="#{oembed[:height]}" #{Helpers.title_attr(oembed)}>
</a>
HTML
end
end