mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 02:15:19 +00:00
Merge branch 'master' of https://github.com/friendica/red
This commit is contained in:
commit
9a1c3f10b2
2 changed files with 10 additions and 1 deletions
|
@ -56,6 +56,15 @@ function oembed_fetch_url($embedurl){
|
|||
$txt = $x['body'];
|
||||
break;
|
||||
}
|
||||
// soundcloud is now using text/json+oembed instead of application/json+oembed,
|
||||
// others may be also
|
||||
$entries = $xpath->query("//link[@type='text/json+oembed']");
|
||||
foreach($entries as $e){
|
||||
$href = $e->getAttributeNode("href")->nodeValue;
|
||||
$x = z_fetch_url($href . '&maxwidth=' . $a->videowidth);
|
||||
$txt = $x['body'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
2014-10-07.821
|
||||
2014-10-08.822
|
||||
|
|
Loading…
Reference in a new issue