Replace "Probe::uri" with "Contact::getByURL"

This commit is contained in:
Michael 2020-07-16 10:22:14 +00:00
parent c352af8eda
commit d6bf7f2cda
7 changed files with 18 additions and 20 deletions

View file

@ -37,7 +37,6 @@ use Friendica\Core\Logger;
use Friendica\Core\System;
use Friendica\Protocol\PortableContact;
use Friendica\Protocol\Diaspora;
use Friendica\Network\Probe;
/**
* This class handles GServer related functions
@ -980,8 +979,8 @@ class GServer
}
foreach ($contacts as $contact) {
$probed = Probe::uri($contact);
if (in_array($probed['network'], Protocol::FEDERATED)) {
$probed = Contact::getByURL($contact);
if (!empty($probed) && in_array($probed['network'], Protocol::FEDERATED)) {
$serverdata['network'] = $probed['network'];
break;
}