don't perform zot_refresh on dead sites unless $force is set

This commit is contained in:
zotlabs 2017-11-01 19:24:29 -07:00
parent 28cd2759d7
commit 52657b6215

View File

@ -285,6 +285,16 @@ function zot_refresh($them, $channel = null, $force = false) {
return false;
}
$s = q("select site_dead from site where site_url = '%s' limit 1",
dbesc($url)
);
if($s && intval($s[0]['site_dead']) && (! $force)) {
logger('zot_refresh: site ' . $url . ' is marked dead and force flag is not set. Cancelling operation.');
return false;
}
$token = random_string();
$postvars = [];