diff options
author | Friendika <info@friendika.com> | 2011-01-23 13:49:21 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-01-23 13:49:21 -0800 |
commit | 950e5f6693907c76821b4da99cd4e3b080c4ae23 (patch) | |
tree | 221ebc2e6c5682948cb71d0ed6b543edcaede422 /mod/item.php | |
parent | ab62b8f712382f72a0ec2e51812bc8ced299c154 (diff) | |
download | volse-hubzilla-950e5f6693907c76821b4da99cd4e3b080c4ae23.tar.gz volse-hubzilla-950e5f6693907c76821b4da99cd4e3b080c4ae23.tar.bz2 volse-hubzilla-950e5f6693907c76821b4da99cd4e3b080c4ae23.zip |
given a tag @foo, don't also link/replace words like food in msg body
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/item.php b/mod/item.php index f9bf9a04e..f964e7737 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 .= ','; |