Added DailyMotion & Twitter oEmbeds
This commit is contained in:
parent
89042078ca
commit
40fdf3819b
1 changed files with 10 additions and 1 deletions
|
|
@ -9,6 +9,13 @@ require 'uri'
|
||||||
|
|
||||||
OEmbedCubbies = OEmbed::Provider.new("http://cubbi.es/oembed")
|
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
|
# patch in support for new https soundcloud
|
||||||
OEmbed::Providers::SoundCloud << "https://*.soundcloud.com/*"
|
OEmbed::Providers::SoundCloud << "https://*.soundcloud.com/*"
|
||||||
|
|
||||||
|
|
@ -18,7 +25,9 @@ oembed_provider_list = [
|
||||||
OEmbed::Providers::SoundCloud,
|
OEmbed::Providers::SoundCloud,
|
||||||
OEmbed::Providers::Instagram,
|
OEmbed::Providers::Instagram,
|
||||||
OEmbed::Providers::Flickr,
|
OEmbed::Providers::Flickr,
|
||||||
OEmbedCubbies
|
OEmbedCubbies,
|
||||||
|
OEmbedDailyMotion,
|
||||||
|
OEmbedTwitter
|
||||||
]
|
]
|
||||||
|
|
||||||
SECURE_ENDPOINTS = oembed_provider_list.map do |provider|
|
SECURE_ENDPOINTS = oembed_provider_list.map do |provider|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue