]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/Directory.php
Merge pull request #11402 from annando/featured-endpoint
[friendica.git] / src / Worker / Directory.php
index 12dfda087368864b37cfb4576d0daf33fb33b9d3..65034a44aebe24b19f83570ed4aa9cf6c17a587c 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
  *
@@ -26,6 +26,7 @@ use Friendica\Core\Logger;
 use Friendica\Core\Worker;
 use Friendica\Database\DBA;
 use Friendica\DI;
+use Friendica\Network\HTTPClient\Client\HttpClientAccept;
 
 /**
  * Sends updated profile data to the directory
@@ -51,9 +52,9 @@ class Directory
 
                Hook::callAll('globaldir_update', $arr);
 
-               Logger::log('Updating directory: ' . $arr['url'], Logger::DEBUG);
+               Logger::info('Updating directory: ' . $arr['url']);
                if (strlen($arr['url'])) {
-                       DI::httpRequest()->fetch($dir . '?url=' . bin2hex($arr['url']));
+                       DI::httpClient()->fetch($dir . '?url=' . bin2hex($arr['url']), HttpClientAccept::HTML);
                }
 
                return;