]> git.mxchange.org Git - friendica.git/commitdiff
Ops, my bad
authorRoland Häder <roland@mxchange.org>
Fri, 20 Jan 2023 00:07:05 +0000 (01:07 +0100)
committerRoland Häder <roland@mxchange.org>
Wed, 17 Jan 2024 00:03:03 +0000 (01:03 +0100)
src/Model/GServer.php

index 9995ca422ba67b5b7d05651ac5573e5cfcfa0f26..0c839a78e186c8cddb4de0cbbb63061acfe60f58 100644 (file)
@@ -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)) {