lib/onebox/engine/opengraph_image.rb in onebox-1.8.55 vs lib/onebox/engine/opengraph_image.rb in onebox-1.8.57
- old
+ new
@@ -3,10 +3,10 @@
module OpengraphImage
def to_html
og = get_opengraph
escaped_src = ::Onebox::Helpers.normalize_url_for_output(og[:image])
- "<img src='#{escaped_src}' width='#{og[:image_width]}' height='#{og[:image_height]}' #{Helpers.title_attr(og)}>"
+ "<img src='#{escaped_src}' width='#{og[:image_width]}' height='#{og[:image_height]}' class='onebox' #{Helpers.title_attr(og)}>"
end
end
end
end