lib/onebox/engine/standard_embed.rb in onebox-1.5.16 vs lib/onebox/engine/standard_embed.rb in onebox-1.5.17
- old
+ new
@@ -17,12 +17,14 @@
def self.add_opengraph_provider(regexp)
opengraph_providers.push(regexp)
end
# Some oembed providers (like meetup.com) don't provide links to themselves
- add_oembed_provider /www\.meetup\.com\//, 'http://api.meetup.com/oembed'
+ add_oembed_provider /www\.flickr\.com\//, 'http://www.flickr.com/services/oembed.json'
add_oembed_provider /www\.kickstarter\.com\//, 'https://www.kickstarter.com/services/oembed'
+ add_oembed_provider /www\.meetup\.com\//, 'http://api.meetup.com/oembed'
add_oembed_provider /www\.ted\.com\//, 'http://www.ted.com/services/v1/oembed.json'
+ add_oembed_provider /(.*\.)?vimeo\.com\//, 'http://vimeo.com/api/oembed.json'
# Sites that work better with OpenGraph
add_opengraph_provider /gfycat\.com\//
def raw