]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/oembedhelper.php
Forgot to catch no-parent-exception
[quix0rs-gnu-social.git] / lib / oembedhelper.php
index 903f80c581a03b92a17ec5f2a698809d9c307cab..6b5b8d34f2bd2139b82f2a817e0574a994df1675 100644 (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);
     }