<?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
*
use Friendica\Core\Worker;
use Friendica\Database\DBA;
use Friendica\DI;
+use Friendica\Network\HTTPClient\Client\HttpClient;
/**
* Sends updated profile data to the 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']), 0, HttpClient::ACCEPT_HTML);
}
return;