X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Foembed.php;h=1f45d2814325449ce5816e564fd7545b9ea2a4c9;hb=91d1ef36d8e2bd117160418cb82a39c7b2353c91;hp=52068efc763fab6599e4d98b2168452c4815f9c6;hpb=c95deb48398a23de68a3d438b5fffeaea3f3fa01;p=friendica.git diff --git a/include/oembed.php b/include/oembed.php old mode 100755 new mode 100644 index 52068efc76..1f45d28143 --- a/include/oembed.php +++ b/include/oembed.php @@ -1,6 +1,6 @@ query("//link[@type='application/json+oembed']"); foreach($entries as $e){ $href = $e->getAttributeNode("href")->nodeValue; - $txt = fetch_url($href); + $txt = fetch_url($href . '&maxwidth=425'); + break; } } } @@ -43,7 +47,7 @@ function oembed_fetch_url($embedurl){ if ($txt==false || $txt==""){ // try oohembed service - $ourl = "http://oohembed.com/oohembed/?url=".urlencode($embedurl); + $ourl = "http://oohembed.com/oohembed/?url=".urlencode($embedurl).'&maxwidth=425'; $txt = fetch_url($ourl); }