lib/onebox/engine/flickr_onebox.rb in onebox-1.8.4 vs lib/onebox/engine/flickr_onebox.rb in onebox-1.8.5

- old
+ new

@@ -1,18 +1,14 @@ +require_relative './opengraph_image' + module Onebox module Engine class FlickrOnebox include Engine include StandardEmbed + include OpengraphImage matches_regexp(/^https?:\/\/www\.flickr\.com\/photos\//) always_https - - 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)}>" - end - end end end