Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Tangey (Ruxton) <ruxton@thefrontiergroup.com.au>2013-04-26 11:25:08 +0400
committerGreg Tangey (Ruxton) <ruxton@thefrontiergroup.com.au>2013-04-26 11:25:08 +0400
commit9f66e32cceb01f6ab968cd95bf41d2052a78214e (patch)
tree24c099f59ad55a9122688218dbe40cdd6b73125d /config/initializers
parentea792246d043e832cf974a444f872a96c85e1178 (diff)
MixCloud oEmbed support
Adding support for MixCloud oEmbed
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/oembed.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/oembed.rb b/config/initializers/oembed.rb
index d02d8236a..c6a5ea9d5 100644
--- a/config/initializers/oembed.rb
+++ b/config/initializers/oembed.rb
@@ -16,6 +16,9 @@ OEmbedTwitter = OEmbed::Provider.new("https://api.twitter.com/1/statuses/oembed.
OEmbedTwitter << "http://twitter.com/*/status/*"
OEmbedTwitter << "https://twitter.com/*/status/*"
+OEmbedMixCloud = OEmbed::Provider.new("http://www.mixcloud.com/oembed/")
+OEmbedMixCloud << "http://www.mixcloud.com/*/*"
+
# patch in support for new https soundcloud
OEmbed::Providers::SoundCloud << "https://*.soundcloud.com/*"