mirror of
https://github.com/friendica/friendica
synced 2025-04-25 00:30:32 +00:00
Rename DI::httpRequest() into DI::httpClient()
This commit is contained in:
parent
505100bdd7
commit
13a91e63aa
38 changed files with 94 additions and 94 deletions
|
@ -45,7 +45,7 @@ class UpdateServerDirectory
|
|||
|
||||
private static function discoverPoCo(array $gserver)
|
||||
{
|
||||
$result = DI::httpRequest()->fetch($gserver['poco'] . '?fields=urls');
|
||||
$result = DI::httpClient()->fetch($gserver['poco'] . '?fields=urls');
|
||||
if (empty($result)) {
|
||||
Logger::info('Empty result', ['url' => $gserver['url']]);
|
||||
return;
|
||||
|
@ -78,7 +78,7 @@ class UpdateServerDirectory
|
|||
|
||||
private static function discoverMastodonDirectory(array $gserver)
|
||||
{
|
||||
$result = DI::httpRequest()->fetch($gserver['url'] . '/api/v1/directory?order=new&local=true&limit=200&offset=0');
|
||||
$result = DI::httpClient()->fetch($gserver['url'] . '/api/v1/directory?order=new&local=true&limit=200&offset=0');
|
||||
if (empty($result)) {
|
||||
Logger::info('Empty result', ['url' => $gserver['url']]);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue