From: Michael Vogel Date: Sat, 4 Jul 2015 21:49:52 +0000 (+0200) Subject: When posting to Diaspora, now the contact names are containing the link to the user... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=43f98bc8542867ba3b098d8c6ba498b248d83286;p=friendica.git When posting to Diaspora, now the contact names are containing the link to the user profile. --- diff --git a/include/bbcode.php b/include/bbcode.php index 6c5a400ddc..e872d859c5 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -887,8 +887,12 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true, $simplehtml = fal $MAILSearchString = $URLSearchString; // Remove all hashtag addresses - if ((!$tryoembed OR $simplehtml) AND ($simplehtml != 7)) + if ((!$tryoembed OR $simplehtml) AND !in_array($simplehtml, array(3, 7))) $Text = preg_replace("/([#@])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", '$1$3', $Text); + elseif ($simplehtml == 3) + $Text = preg_replace("/([@])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", + '$1$3', + $Text); elseif ($simplehtml == 7) $Text = preg_replace("/([@])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", '$1$3',