diff --git a/lib/oembedhelper.php b/lib/oembedhelper.php index 903f80c581..6b5b8d34f2 100644 --- a/lib/oembedhelper.php +++ b/lib/oembedhelper.php @@ -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); }