X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Foembedhelper.php;h=6b5b8d34f2bd2139b82f2a817e0574a994df1675;hb=58717fa6c53644851a4598be16b4901bcd84d48a;hp=6d8064e660502298525ecfb205d40f0c6a41ed25;hpb=12588b1cf73fad7d0a76a29a46ec355150eaa54e;p=quix0rs-gnu-social.git diff --git a/lib/oembedhelper.php b/lib/oembedhelper.php index 6d8064e660..6b5b8d34f2 100644 --- a/lib/oembedhelper.php +++ b/lib/oembedhelper.php @@ -61,7 +61,7 @@ class oEmbedHelper * Some known hosts are whitelisted with API endpoints where we * know they exist but autodiscovery data isn't available. * If autodiscovery links are missing and we don't recognize the - * host, we'll pass it to oohembed.com's public service which + * host, we'll pass it to noembed.com's public service which * will either proxy or fake info on a lot of sites. * * A few hosts are blacklisted due to known problems with oohembed, @@ -94,7 +94,7 @@ class oEmbedHelper case 'built-in': common_log(LOG_INFO, 'Considering built-in oEmbed methods...'); // Blacklist: systems with no oEmbed API of their own, which are - // either missing from or broken on oohembed.com's proxy. + // either missing from or broken on noembed.com's proxy. // we know how to look data up in another way... if (array_key_exists($host, self::$functionMap)) { common_log(LOG_INFO, 'We have a built-in method for ' . $host); @@ -216,6 +216,10 @@ class oEmbedHelper { $params['url'] = $url; $params['format'] = 'json'; + $key=common_config('oembed','apikey'); + if(isset($key)) { + $params['key'] = common_config('oembed','apikey'); + } $data = self::json($api, $params); return self::normalize($data); }