aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2016-07-14 20:49:26 +0200
committerzottel <github@zottel.net>2016-07-14 20:49:26 +0200
commita2461d98168fc132a7bf447a9806f0537361fd69 (patch)
treeceaab889a4fbb584ec37969087560a115ff649ca /include/zot.php
parentecc06aad240a5e9babb29a512be434a107d4a291 (diff)
parentf60a0c5ce050febb0b200938eb51d88cf563b88f (diff)
downloadvolse-hubzilla-a2461d98168fc132a7bf447a9806f0537361fd69.tar.gz
volse-hubzilla-a2461d98168fc132a7bf447a9806f0537361fd69.tar.bz2
volse-hubzilla-a2461d98168fc132a7bf447a9806f0537361fd69.zip
Merge remote-tracking branch 'upstream/dev' into dev
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/zot.php b/include/zot.php
index 6dd789181..45347ef22 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -3014,7 +3014,12 @@ function build_sync_packet($uid = 0, $packet = null, $groups_changed = false) {
if($x['hubloc_host'] == App::get_hostname())
continue;
- $synchubs[] = $x;
+ $y = q("select site_dead from site where site_url = '%s' limit 1",
+ dbesc($x['hubloc_url'])
+ );
+
+ if((! $y) || ($y[0]['site_dead'] == 0))
+ $synchubs[] = $x;
}
if(! $synchubs)