]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/UpdateServerPeers.php
Move notification to the new paradigm
[friendica.git] / src / Worker / UpdateServerPeers.php
index d7dc7562cff1b9b008d49804c1e0f274c892ae57..e058506b8636359ef08af691145b09ca08f69809 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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;