]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/PullDirectory.php
Check the existence of the `uid` field before accessing it in Module\Photo
[friendica.git] / src / Worker / PullDirectory.php
index d9a559bf5f260255f5a68958a9640baba242ea85..04aab5016a838ea98cd104c45bb51f5542ad636b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -47,7 +47,7 @@ class PullDirectory
 
                Logger::info('Synchronization started.', ['now' => $now, 'directory' => $directory]);
 
-               $result = DI::httpRequest()->fetch($directory . '/sync/pull/since/' . $now);
+               $result = DI::httpClient()->fetch($directory . '/sync/pull/since/' . $now);
                if (empty($result)) {
                        Logger::info('Directory server return empty result.', ['directory' => $directory]);
                        return;