diff --git a/config/initializers/oembed.rb b/config/initializers/oembed.rb index f86c5a9ed..d02d8236a 100644 --- a/config/initializers/oembed.rb +++ b/config/initializers/oembed.rb @@ -9,6 +9,13 @@ require 'uri' OEmbedCubbies = OEmbed::Provider.new("http://cubbi.es/oembed") +OEmbedDailyMotion = OEmbed::Provider.new("http://www.dailymotion.com/services/oembed") +OEmbedDailyMotion << "http://www.dailymotion.com/video/*" + +OEmbedTwitter = OEmbed::Provider.new("https://api.twitter.com/1/statuses/oembed.json") +OEmbedTwitter << "http://twitter.com/*/status/*" +OEmbedTwitter << "https://twitter.com/*/status/*" + # patch in support for new https soundcloud OEmbed::Providers::SoundCloud << "https://*.soundcloud.com/*" @@ -18,7 +25,9 @@ oembed_provider_list = [ OEmbed::Providers::SoundCloud, OEmbed::Providers::Instagram, OEmbed::Providers::Flickr, - OEmbedCubbies + OEmbedCubbies, + OEmbedDailyMotion, + OEmbedTwitter ] SECURE_ENDPOINTS = oembed_provider_list.map do |provider|