diff options
author | friendica <info@friendica.com> | 2014-08-10 20:38:14 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-08-10 20:38:14 -0700 |
commit | 5dab65d783a1f4eca58eff9cc1cfa70590f58523 (patch) | |
tree | 5da5ce4c84b96a4f67a8cf5bc497f7446cc45fb3 | |
parent | b12e40a4e86d162a739fc9b9c3664335d3b1481e (diff) | |
download | volse-hubzilla-5dab65d783a1f4eca58eff9cc1cfa70590f58523.tar.gz volse-hubzilla-5dab65d783a1f4eca58eff9cc1cfa70590f58523.tar.bz2 volse-hubzilla-5dab65d783a1f4eca58eff9cc1cfa70590f58523.zip |
make mention tagging by webbie do the right thing.
-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 49de263dd..0e2456df3 100644 --- a/mod/item.php +++ b/mod/item.php @@ -1102,7 +1102,7 @@ function handle_tag($a, &$body, &$access_tag, &$str_tags, $profile_uid, $tag) { //select someone by attag or nick and the name passed in $r = q("SELECT * FROM abook left join xchan on abook_xchan = xchan_hash WHERE xchan_addr like ('%s') AND abook_channel = %d LIMIT 1", - dbesc($newname . '@%'), + dbesc(((strpos($newname,'@')) ? $newname : $newname . '@%')), intval($profile_uid) ); } |