From 5dab65d783a1f4eca58eff9cc1cfa70590f58523 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 10 Aug 2014 20:38:14 -0700 Subject: make mention tagging by webbie do the right thing. --- mod/item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod') 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) ); } -- cgit v1.2.3