aboutsummaryrefslogtreecommitdiffstats
path: root/include/oembed.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-01 00:35:35 -0800
committerfriendica <info@friendica.com>2013-12-01 00:35:35 -0800
commitd43118fdcfe1d4f89698ead0d3324ca81695cf4a (patch)
treea03ab8dc24eeba59a796e46b9a75e7537fefca64 /include/oembed.php
parentbd33e0486d992eb8904f84862c052ee2f9d01d55 (diff)
downloadvolse-hubzilla-d43118fdcfe1d4f89698ead0d3324ca81695cf4a.tar.gz
volse-hubzilla-d43118fdcfe1d4f89698ead0d3324ca81695cf4a.tar.bz2
volse-hubzilla-d43118fdcfe1d4f89698ead0d3324ca81695cf4a.zip
get rid of fetch_url - post_url will be a bit harder as several plugins need to be updated
Diffstat (limited to 'include/oembed.php')
-rwxr-xr-xinclude/oembed.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/oembed.php b/include/oembed.php
index 5da842170..520b69892 100755
--- a/include/oembed.php
+++ b/include/oembed.php
@@ -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;
}
}