mirror of
https://github.com/friendica/friendica
synced 2025-04-28 03:10:11 +00:00
Replace "Probe::uri" with "Contact::getByURL"
This commit is contained in:
parent
c352af8eda
commit
d6bf7f2cda
7 changed files with 18 additions and 20 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue