lib/onebox/engine/imgur_onebox.rb in onebox-1.8.55 vs lib/onebox/engine/imgur_onebox.rb in onebox-1.8.57
- old
+ new
@@ -56,10 +56,10 @@
def image_html(og)
escaped_url = ::Onebox::Helpers.normalize_url_for_output(url)
escaped_src = ::Onebox::Helpers.normalize_url_for_output(get_secure_link(og[:image]))
<<-HTML
- <a href='#{escaped_url}' target='_blank'>
+ <a href='#{escaped_url}' target='_blank' class="onebox">
<img src='#{escaped_src}' #{Helpers.title_attr(og)} alt='Imgur' height='#{og[:image_height]}' width='#{og[:image_width]}'>
</a>
HTML
end