]> git.mxchange.org Git - friendica.git/blobdiff - mod/parse_url.php
update timestamp on activity change (comment/like)
[friendica.git] / mod / parse_url.php
index 9bb0bc46408e76f3a090d512c3d01fc63bc2bafa..79c336ddccad66f84b5869778e5d33e099aed4ed 100644 (file)
@@ -13,7 +13,7 @@ function parse_url_content(&$a) {
 
        $text = null;
 
-       $template = "<br /><a href=\"%s\" >%s</a>%s<br />";
+       $template = "<br /><a class=\"bookmark\" href=\"%s\" >%s</a>%s<br />";
 
 
        $arr = array('url' => $url, 'text' => '');
@@ -119,6 +119,12 @@ function parse_url_content(&$a) {
                $text = '<br /><br /><blockquote>' . $text . '</blockquote><br />';
        }
 
-       echo sprintf($template,$url,($title) ? $title : $url,$text);
+       $title = str_replace("\n",'',$title);
+
+       $result = sprintf($template,$url,($title) ? $title : $url,$text);
+
+       logger('parse_url: returns: ' . $result); 
+
+       echo $result;
        killme();
 }