lib/onebox/engine/imgur_onebox.rb in onebox-2.1.3 vs lib/onebox/engine/imgur_onebox.rb in onebox-2.1.4
- old
+ new
@@ -56,10 +56,10 @@
def image_html(og)
escaped_url = ::Onebox::Helpers.normalize_url_for_output(url)
<<-HTML
<a href='#{escaped_url}' target='_blank' rel='noopener' class="onebox">
- <img src='#{og.get_secure_image}' #{og.title_attr} alt='Imgur' height='#{og.image_height}' width='#{og.image_width}'>
+ <img src='#{og.get_secure_image.chomp("?fb")}' #{og.title_attr} alt='Imgur'>
</a>
HTML
end
end
end