get rid of fetch_url - post_url will be a bit harder as several plugins need to be updated

This commit is contained in:
friendica
2013-12-01 00:35:35 -08:00
parent bd33e0486d
commit d43118fdcf
2 changed files with 7 additions and 154 deletions

View File

@@ -44,7 +44,8 @@ function oembed_fetch_url($embedurl){
$entries = $xpath->query("//link[@type='application/json+oembed']");
foreach($entries as $e){
$href = $e->getAttributeNode("href")->nodeValue;
$txt = fetch_url($href . '&maxwidth=' . $a->videowidth);
$x = z_fetch_url($href . '&maxwidth=' . $a->videowidth);
$txt = $x['body'];
break;
}
}