Replaced more calls of "Probe::uri" with "Contact::getByURL"

This commit is contained in:
Michael 2020-07-16 19:22:38 +00:00
parent dd85f48e0d
commit 70699878ee
3 changed files with 7 additions and 66 deletions

View file

@ -27,9 +27,9 @@ use Friendica\Core\Protocol;
use Friendica\Core\Search;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Contact;
use Friendica\Model\GContact;
use Friendica\Model\GServer;
use Friendica\Network\Probe;
use Friendica\Util\Network;
use Friendica\Util\Strings;
@ -81,7 +81,7 @@ class SearchDirectory
Logger::info('Friendica server seems to be okay.', ['server' => $server_url]);
}
$data = Probe::uri($jj->url);
$data = Contact::getByURL($jj->url);
if ($data['network'] == Protocol::DFRN) {
Logger::info('Add profile to local directory', ['profile' => $jj->url]);