Sha256: d33f87a735c84607582f50987b54452ee69fca5a5a8d3532fa61b2aead0bfe75
Contents?: true
Size: 458 Bytes
Versions: 11
Compression:
Stored size: 458 Bytes
Contents
module Onebox module Engine class FlickrOnebox include Engine include StandardEmbed 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
Version data entries
11 entries across 11 versions & 1 rubygems