aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-22 19:13:10 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-22 19:13:10 -0700
commitd16ac62a511ed32e7bcd50ee25148c0771b5e765 (patch)
treef3209f29b27c51f1df0eb8dd2764a30cb8105818 /include
parent15feeb7bfe324bbe87e689ee7920a6be20cc204c (diff)
downloadvolse-hubzilla-d16ac62a511ed32e7bcd50ee25148c0771b5e765.tar.gz
volse-hubzilla-d16ac62a511ed32e7bcd50ee25148c0771b5e765.tar.bz2
volse-hubzilla-d16ac62a511ed32e7bcd50ee25148c0771b5e765.zip
don't send sync packets to deleted hubloc locations
Diffstat (limited to 'include')
-rw-r--r--include/zot.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/zot.php b/include/zot.php
index 236b55522..aae429709 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -2802,8 +2802,10 @@ function build_sync_packet($uid = 0, $packet = null, $groups_changed = false) {
$channel = $r[0];
- $h = q("select * from hubloc where hubloc_hash = '%s'",
- dbesc($channel['channel_hash'])
+ $h = q("select * from hubloc where hubloc_hash = '%s' and not (hubloc_flags & %d) > 0 and not (hubloc_status & %d) > 0",
+ dbesc($channel['channel_hash']),
+ intval(HUBLOC_FLAGS_DELETED),
+ intval(HUBLOC_OFFLINE)
);
if(! $h)