You need an API key when using embed.ly. Unfortunatly oembedhelper.php does not support it. This commit aims to fix it.
This commit is contained in:
parent
d36f443666
commit
368906258a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user