aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-20 16:52:21 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-20 16:52:21 -0700
commit9de8df496a98019d4b4a3e7549e0d5047dd87024 (patch)
treeb3b5fd34add0d3b68cb3b47edaa8f6bffb7d05fb /include/zot.php
parent77df590f6516435e5c43a8d0f20e857951264941 (diff)
downloadvolse-hubzilla-9de8df496a98019d4b4a3e7549e0d5047dd87024.tar.gz
volse-hubzilla-9de8df496a98019d4b4a3e7549e0d5047dd87024.tar.bz2
volse-hubzilla-9de8df496a98019d4b4a3e7549e0d5047dd87024.zip
we need the xchan record also
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php
index d01613225..57645f631 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -490,7 +490,7 @@ function zot_refresh($them, $channel = null, $force = false) {
$new_perms = get_all_perms($channel['channel_id'],$x['hash']);
// Send a clone sync packet and a permissions update if permissions have changed
- $new_connection = q("select * from abook where abook_xchan = '%s' and abook_channel = %d and not (abook_flags & %d) > 0 order by abook_created desc limit 1",
+ $new_connection = q("select * from abook left join xchan on abook_xchan = xchan_hash where abook_xchan = '%s' and abook_channel = %d and not (abook_flags & %d) > 0 order by abook_created desc limit 1",
dbesc($x['hash']),
intval($channel['channel_id']),
intval(ABOOK_FLAG_SELF)