lib/onebox/engine/opengraph_image.rb in onebox-1.8.79 vs lib/onebox/engine/opengraph_image.rb in onebox-1.8.80
- old
+ new
@@ -2,11 +2,10 @@
module Engine
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]}' class='onebox' #{Helpers.title_attr(og)}>"
+ "<img src='#{og.image}' width='#{og.image_width}' height='#{og.image_height}' class='onebox' #{og.title_attr}>"
end
end
end
end