]> git.mxchange.org Git - friendica.git/commitdiff
given a tag @foo, don't also link/replace words like food in msg body
authorFriendika <info@friendika.com>
Sun, 23 Jan 2011 21:49:21 +0000 (13:49 -0800)
committerFriendika <info@friendika.com>
Sun, 23 Jan 2011 21:49:21 +0000 (13:49 -0800)
mod/item.php

index f9bf9a04e066316bd971435de3e1cf0f3d484fb9..f964e7737db2ab4f87ffaebf35aa2c3d090160f8 100644 (file)
@@ -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 .= ',';