From: Roland Häder Date: Fri, 20 Jan 2023 00:07:05 +0000 (+0100) Subject: Ops, my bad X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8e142d1da6ecd2a32e60dfe15549652462032413;p=friendica.git Ops, my bad --- diff --git a/src/Model/GServer.php b/src/Model/GServer.php index 9995ca422b..0c839a78e1 100644 --- a/src/Model/GServer.php +++ b/src/Model/GServer.php @@ -783,8 +783,9 @@ class GServer $serverdata['next_contact'] = self::getNextUpdateDate(true, '', '', in_array($serverdata['network'], [Protocol::PHANTOM, Protocol::FEED])); $serverdata['last_contact'] = DateTimeFormat::utcNow(); - $serverdata['failed'] = false; $serverdata['registered-users'] = $serverdata['registered-users'] ?? 0; + $serverdata['failed'] = false; + $serverdata['blocked'] = false; // Numbers above a reasonable value (10 millions) are ignored if ($serverdata['registered-users'] > 10000000) { @@ -798,10 +799,6 @@ class GServer $serverdata['registered-users'] = 0; } - $serverdata['next_contact'] = self::getNextUpdateDate(true, '', '', in_array($serverdata['network'], [Protocol::PHANTOM, Protocol::FEED])); - $serverdata['last_contact'] = DateTimeFormat::utcNow(); - $serverdata['failed'] = false; - $serverdata['blocked'] = false; $gserver = DBA::selectFirst('gserver', ['network'], ['nurl' => Strings::normaliseLink($url)]); if (!DBA::isResult($gserver)) {