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:
Diffstat (limited to 'config/initializers/oembed.rb')
-rw-r--r--config/initializers/oembed.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/initializers/oembed.rb b/config/initializers/oembed.rb
index e8334cdad..bf0fc2092 100644
--- a/config/initializers/oembed.rb
+++ b/config/initializers/oembed.rb
@@ -15,6 +15,8 @@ oembed_provider_list = [
OEmbed::Providers::Flickr
]
+OEmbed::Providers::Youtube.endpoint += "?scheme=https"
+
oembed_providers = YAML.load_file(Rails.root.join("config", "oembed_providers.yml"))
oembed_providers.each do |provider_name, provider|