mirror of
https://github.com/friendica/friendica
synced 2025-05-12 04:24:11 +02:00
Remove obsolete function to guess the base url of a contact
This commit is contained in:
parent
a855c6888b
commit
21e9e9f3c2
3 changed files with 8 additions and 78 deletions
|
@ -11,6 +11,7 @@ use Friendica\Core\Protocol;
|
|||
use Friendica\Core\Worker;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\GContact;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Network\Probe;
|
||||
use Friendica\Protocol\PortableContact;
|
||||
use Friendica\Util\DateTimeFormat;
|
||||
|
@ -175,7 +176,7 @@ class DiscoverPoCo
|
|||
continue;
|
||||
}
|
||||
|
||||
$server_url = PortableContact::detectServer($user["url"]);
|
||||
$server_url = Contact::getBasepath($user["url"]);
|
||||
$force_update = false;
|
||||
|
||||
if ($user["server_url"] != "") {
|
||||
|
@ -234,7 +235,7 @@ class DiscoverPoCo
|
|||
continue;
|
||||
}
|
||||
|
||||
$server_url = PortableContact::detectServer($jj->url);
|
||||
$server_url = Contact::getBasepath($jj->url);
|
||||
if ($server_url != '') {
|
||||
if (!PortableContact::checkServer($server_url)) {
|
||||
Logger::log("Friendica server ".$server_url." doesn't answer.", Logger::DEBUG);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue