projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab62b8f
)
given a tag @foo, don't also link/replace words like food in msg body
author
Friendika
<info@friendika.com>
Sun, 23 Jan 2011 21:49:21 +0000
(13:49 -0800)
committer
Friendika
<info@friendika.com>
Sun, 23 Jan 2011 21:49:21 +0000
(13:49 -0800)
mod/item.php
patch
|
blob
|
history
diff --git
a/mod/item.php
b/mod/item.php
index f9bf9a04e066316bd971435de3e1cf0f3d484fb9..f964e7737db2ab4f87ffaebf35aa2c3d090160f8 100644
(file)
--- 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 .= ',';