From: Friendika Date: Wed, 31 Aug 2011 03:20:17 +0000 (-0700) Subject: This *might* fix Diaspora @ tags - or it might not. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b11a0efff120508a2059afe372f50144dcc8b977;p=friendica.git This *might* fix Diaspora @ tags - or it might not. --- diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php index 066d7bfffe..ec41ce139e 100644 --- a/include/bb2diaspora.php +++ b/include/bb2diaspora.php @@ -18,6 +18,8 @@ function diaspora2bb($s) { $s = str_replace(array('-^doublestar^-','-^doublescore-^','-^star^-','-^score^-'), array('**','__','*','_'), $s); $s = preg_replace('/\[(.+?)\]\((.+?)\)/','[url=$2]$1[/url]',$s); $s = preg_replace('/\!\[(.+?)\]\((.+?)\)/','[img]$2[/img]',$s); + $s = preg_replace('/\@\{(.+?)\; (.+?)\@(.+?)\}/','@[url=https://$3/u/$2]$1[/url]',$s); + $s = escape_tags($s); return $s;