aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/zot.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/zot.php b/include/zot.php
index d50754638..86e9da5f3 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -2816,8 +2816,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)