aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-23 13:49:21 -0800
committerFriendika <info@friendika.com>2011-01-23 13:49:21 -0800
commit950e5f6693907c76821b4da99cd4e3b080c4ae23 (patch)
tree221ebc2e6c5682948cb71d0ed6b543edcaede422 /mod
parentab62b8f712382f72a0ec2e51812bc8ced299c154 (diff)
downloadvolse-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')
-rw-r--r--mod/item.php2
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 .= ',';