X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fparse_url.php;h=9bb0bc46408e76f3a090d512c3d01fc63bc2bafa;hb=2abcf76ec17a9a7754c399cdde9a4449308a4b02;hp=8e168473253efb95815b786f1241e501cfc04275;hpb=ef64c5187df80da2065655726b8d05a9ce6b0e0a;p=friendica.git
diff --git a/mod/parse_url.php b/mod/parse_url.php
index 8e16847325..9bb0bc4640 100644
--- a/mod/parse_url.php
+++ b/mod/parse_url.php
@@ -1,7 +1,7 @@
%s\n%s";
+ $template = "
%s%s
";
$arr = array('url' => $url, 'text' => '');
@@ -26,31 +26,39 @@ function parse_url_content(&$a) {
}
if($url) {
- // fetch link with oembed
- if ($a->config['system']['embed_all']){
- $j = oembed_fetch_url($url);
- if ($j->type!="error"){
- echo oembed_format_object($j);
- killme();
- }
- }
-
$s = fetch_url($url);
} else {
echo '';
killme();
}
+ logger('parse_url: data: ' . $s, LOGGER_DATA);
if(! $s) {
echo sprintf($template,$url,$url,'');
killme();
}
+ if(strpos($s,'