spring cleaning in Oembed helper list
Fixed http -> https and removed some dead services
This commit is contained in:
parent
62a5e36a87
commit
092dfee1c6
|
@ -1,5 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
if (!defined('GNUSOCIAL')) { exit(1); }
|
||||||
|
|
||||||
class OembedPlugin extends Plugin
|
class OembedPlugin extends Plugin
|
||||||
{
|
{
|
||||||
public function onCheckSchema()
|
public function onCheckSchema()
|
||||||
|
|
|
@ -41,15 +41,11 @@ if (!defined('STATUSNET')) {
|
||||||
class oEmbedHelper
|
class oEmbedHelper
|
||||||
{
|
{
|
||||||
protected static $apiMap = array(
|
protected static $apiMap = array(
|
||||||
'flickr.com' => 'http://www.flickr.com/services/oembed/',
|
'flickr.com' => 'https://www.flickr.com/services/oembed/',
|
||||||
'yfrog.com' => 'http://www.yfrog.com/api/oembed',
|
'youtube.com' => 'https://www.youtube.com/oembed',
|
||||||
'youtube.com' => 'http://www.youtube.com/oembed',
|
|
||||||
'viddler.com' => 'http://lab.viddler.com/services/oembed/',
|
'viddler.com' => 'http://lab.viddler.com/services/oembed/',
|
||||||
'qik.com' => 'http://qik.com/api/oembed.json',
|
'revision3.com' => 'https://revision3.com/api/oembed/',
|
||||||
'revision3.com' => 'http://revision3.com/api/oembed/',
|
'vimeo.com' => 'https://vimeo.com/api/oembed.json',
|
||||||
'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',
|
|
||||||
);
|
);
|
||||||
protected static $functionMap = array(
|
protected static $functionMap = array(
|
||||||
'twitpic.com' => 'oEmbedHelper::twitPic',
|
'twitpic.com' => 'oEmbedHelper::twitPic',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user