X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Foembed.php;h=cb478cb8605d7054133a6e9ab371e2dbb9187d9b;hb=0c9cc29a51941eb572bf16fd5489d0947d47d033;hp=236625f68a662ac23b1631b659bfb7e15f875f1e;hpb=c3139fa0fd49b0b4de4568d46a6946c75ccb2a62;p=friendica.git diff --git a/mod/oembed.php b/mod/oembed.php index 236625f68a..cb478cb860 100644 --- a/mod/oembed.php +++ b/mod/oembed.php @@ -9,17 +9,24 @@ function oembed_content(&$a){ echo oembed_replacecb($url); killme(); } - + if ($a->argv[1]=='h2b'){ $text = trim(hex2bin($_REQUEST['text'])); echo oembed_html2bbcode($text); killme(); } - + if ($a->argc == 2){ echo "
"; $url = base64url_decode($a->argv[1]); $j = oembed_fetch_url($url); + + // workaround for media.ccc.de (and any other endpoint that return size 0) + if (substr($j->html, 0, 7) == "