aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-03 19:54:32 -0800
committerfriendica <info@friendica.com>2014-02-03 19:54:32 -0800
commit9ce3dac479672413eed9c42241cc5d4c40349b27 (patch)
tree046fd150f177e680b9c8683418d0b05158d2ae88 /mod
parent876f5d4de09f6215c3e65146460027d0dd244bc8 (diff)
downloadvolse-hubzilla-9ce3dac479672413eed9c42241cc5d4c40349b27.tar.gz
volse-hubzilla-9ce3dac479672413eed9c42241cc5d4c40349b27.tar.bz2
volse-hubzilla-9ce3dac479672413eed9c42241cc5d4c40349b27.zip
some tagging fixes - including old bugs which were never reported
Diffstat (limited to 'mod')
-rw-r--r--mod/item.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/item.php b/mod/item.php
index 88bf46a9f..68bb75897 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -972,7 +972,7 @@ function handle_tag($a, &$body, &$access_tag, &$str_tags, $profile_uid, $tag) {
$newname = str_replace('_',' ',$name);
//select someone from this user's contacts by name
- $r = q("SELECT * FROM abook left join xchan on abook_xchan - xchan_hash
+ $r = q("SELECT * FROM abook left join xchan on abook_xchan = xchan_hash
WHERE xchan_name = '%s' AND abook_channel = %d LIMIT 1",
dbesc($newname),
intval($profile_uid)
@@ -980,7 +980,7 @@ function handle_tag($a, &$body, &$access_tag, &$str_tags, $profile_uid, $tag) {
if(! $r) {
//select someone by attag or nick and the name passed in
- $r = q("SELECT * FROM abook left join xchan on abook_xchan - xchan_hash
+ $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 . '@%'),
intval($profile_uid)