From: Friendika Date: Sun, 23 Jan 2011 21:49:21 +0000 (-0800) Subject: given a tag @foo, don't also link/replace words like food in msg body X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=950e5f6693907c76821b4da99cd4e3b080c4ae23;p=friendica.git given a tag @foo, don't also link/replace words like food in msg body --- diff --git a/mod/item.php b/mod/item.php index f9bf9a04e0..f964e7737d 100644 --- a/mod/item.php +++ b/mod/item.php @@ -228,7 +228,7 @@ function item_post(&$a) { } } if($profile) { - $body = str_replace($name,'[url=' . $profile . ']' . $newname . '[/url]', $body); + $body = str_replace('@' . $name, '@' . '[url=' . $profile . ']' . $newname . '[/url]', $body); $profile = str_replace(',','%2c',$profile); if(strlen($str_tags)) $str_tags .= ',';