]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/UpdateServerPeers.php
Move notification to the new paradigm
[friendica.git] / src / Worker / UpdateServerPeers.php
index 4569539d61fa48779059c50d469c7432afa6add8..e058506b8636359ef08af691145b09ca08f69809 100644 (file)
@@ -35,7 +35,7 @@ class UpdateServerPeers
         */
        public static function execute(string $url)
        {
-               $ret = DI::httpRequest()->get($url . '/api/v1/instance/peers');
+               $ret = DI::httpClient()->get($url . '/api/v1/instance/peers');
                if (!$ret->isSuccess() || empty($ret->getBody())) {
                        Logger::info('Server is not reachable or does not offer the "peers" endpoint', ['url' => $url]);
                        return;