aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-07-12 18:38:39 -0700
committerredmatrix <git@macgirvin.com>2016-07-12 18:38:39 -0700
commit0fa807e7ad7340ae1a3de4c75bf5c2b1b9f863bc (patch)
tree099e39339f06ab7504997ebe67e414d2b0b0f68e
parentb6987b4287bb2492b8f4000bdef08b376aa5f265 (diff)
downloadvolse-hubzilla-0fa807e7ad7340ae1a3de4c75bf5c2b1b9f863bc.tar.gz
volse-hubzilla-0fa807e7ad7340ae1a3de4c75bf5c2b1b9f863bc.tar.bz2
volse-hubzilla-0fa807e7ad7340ae1a3de4c75bf5c2b1b9f863bc.zip
don't try to send sync packets to dead sites.
-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)