]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
spring cleaning in Oembed helper list
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 17 Jan 2015 11:06:08 +0000 (12:06 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 17 Jan 2015 11:06:08 +0000 (12:06 +0100)
Fixed http -> https and removed some dead services

plugins/Oembed/OembedPlugin.php
plugins/Oembed/lib/oembedhelper.php

index ce8591df25e084c50a1ada75df62c16fd896f940..f38e1e44bf698fb8ffc534f3f9267a99a7b1243f 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 
+if (!defined('GNUSOCIAL')) { exit(1); }
+
 class OembedPlugin extends Plugin
 {
     public function onCheckSchema()
index fab1131648d3df255a5953986f2b71822fdc77b0..34a4923c484aa552e70ca7149b568a48fb6306b4 100644 (file)
@@ -41,15 +41,11 @@ if (!defined('STATUSNET')) {
 class oEmbedHelper
 {
     protected static $apiMap = array(
-        'flickr.com' => 'http://www.flickr.com/services/oembed/',
-        'yfrog.com' => 'http://www.yfrog.com/api/oembed',
-        'youtube.com' => 'http://www.youtube.com/oembed',
+        'flickr.com' => 'https://www.flickr.com/services/oembed/',
+        'youtube.com' => 'https://www.youtube.com/oembed',
         'viddler.com' => 'http://lab.viddler.com/services/oembed/',
-        'qik.com' => 'http://qik.com/api/oembed.json',
-        'revision3.com' => 'http://revision3.com/api/oembed/',
-        'hulu.com' => 'http://www.hulu.com/api/oembed.json',
-        'vimeo.com' => 'http://www.vimeo.com/api/oembed.json',
-        'my.opera.com' => 'http://my.opera.com/service/oembed',
+        'revision3.com' => 'https://revision3.com/api/oembed/',
+        'vimeo.com' => 'https://vimeo.com/api/oembed.json',
     );
     protected static $functionMap = array(
         'twitpic.com' => 'oEmbedHelper::twitPic',