aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-01 19:24:29 -0700
committerzotlabs <mike@macgirvin.com>2017-11-01 19:24:29 -0700
commit52657b6215b3b7104a89c8c3fea09a7f37ebf71e (patch)
treecfb7abdc9031767890c9ced56d87ce0f0568cb72
parent28cd2759d76c9227c474c8c1da073a4f91cf5523 (diff)
downloadvolse-hubzilla-52657b6215b3b7104a89c8c3fea09a7f37ebf71e.tar.gz
volse-hubzilla-52657b6215b3b7104a89c8c3fea09a7f37ebf71e.tar.bz2
volse-hubzilla-52657b6215b3b7104a89c8c3fea09a7f37ebf71e.zip
don't perform zot_refresh on dead sites unless $force is set
-rw-r--r--include/zot.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php
index 6647daa0a..bb87a234c 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -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 = [];