don't try to send sync packets to dead sites.
This commit is contained in:
parent
b6987b4287
commit
0fa807e7ad
@ -3014,6 +3014,11 @@ function build_sync_packet($uid = 0, $packet = null, $groups_changed = false) {
|
|||||||
if($x['hubloc_host'] == App::get_hostname())
|
if($x['hubloc_host'] == App::get_hostname())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
$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;
|
$synchubs[] = $x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user