Remove get_server() in favor of Search::getGlobalDirectory()

This commit is contained in:
nupplaPhil 2020-01-04 23:59:20 +01:00
parent 5d20cd7e16
commit 48baa0be4b
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
10 changed files with 25 additions and 23 deletions

View file

@ -12,6 +12,7 @@ use Friendica\Core\Config;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\System;
use Friendica\Core\Search;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Network\Probe;
@ -508,7 +509,7 @@ class GContact
$done[] = DI::baseUrl() . '/poco';
if (strlen(Config::get('system', 'directory'))) {
$x = Network::fetchUrl(get_server() . '/pubsites');
$x = Network::fetchUrl(Search::getGlobalDirectory() . '/pubsites');
if (!empty($x)) {
$j = json_decode($x);
if (!empty($j->entries)) {