]> git.mxchange.org Git - friendica.git/blobdiff - include/oembed.php
Merge pull request #3449 from Hypolite/improvement/move-probe-to-src
[friendica.git] / include / oembed.php
index d0a2bc8643ae42bedb8a91aa0e9d83cf96ef1e47..80b49fbf046c7095c9724a1e550bc75ed890ab91 100755 (executable)
@@ -4,8 +4,9 @@
  * @file include/oembed.php
  */
 
-use \Friendica\ParseUrl;
-use \Friendica\Core\Config;
+use Friendica\App;
+use Friendica\ParseUrl;
+use Friendica\Core\Config;
 
 function oembed_replacecb($matches){
        $embedurl=$matches[1];
@@ -74,17 +75,6 @@ function oembed_fetch_url($embedurl, $no_rich_type = false){
                        }
                }
 
-               if ($txt==false || $txt=="") {
-                       $embedly = Config::get("system", "embedly");
-                       if ($embedly != "") {
-                               // try embedly service
-                               $ourl = "https://api.embed.ly/1/oembed?key=".$embedly."&url=".urlencode($embedurl);
-                               $txt = fetch_url($ourl);
-
-                               logger("oembed_fetch_url: ".$txt, LOGGER_DEBUG);
-                       }
-               }
-
                $txt = trim($txt);
 
                if ($txt[0] != "{") {