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:
Jean Baptiste Favre 2012-08-29 21:36:55 +02:00
parent d36f443666
commit 368906258a
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}