From 950e5f6693907c76821b4da99cd4e3b080c4ae23 Mon Sep 17 00:00:00 2001 From: Friendika Date: Sun, 23 Jan 2011 13:49:21 -0800 Subject: [PATCH] given a tag @foo, don't also link/replace words like food in msg body --- mod/item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 .= ',';