Remove obsolete function to guess the base url of a contact

This commit is contained in:
Michael 2019-10-02 15:10:42 +00:00
parent a855c6888b
commit 21e9e9f3c2
3 changed files with 8 additions and 78 deletions

View file

@ -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);