1
0
Fork 0

given a tag @foo, don't also link/replace words like food in msg body

This commit is contained in:
Friendika 2011-01-23 13:49:21 -08:00
parent ab62b8f712
commit 950e5f6693

View 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 .= ',';