X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FRemoteFollow.php;h=274ed3d06d63a5cbc74d3bc15187bcdb8897db29;hb=1b273e25b546e09426cb223ce7c534b5b66c9995;hp=bf71b077fd01888deae74dface5203b012ded31f;hpb=18745b1723b3f8580704914e8f9df8441c859e70;p=friendica.git diff --git a/src/Module/RemoteFollow.php b/src/Module/RemoteFollow.php index bf71b077fd..274ed3d06d 100644 --- a/src/Module/RemoteFollow.php +++ b/src/Module/RemoteFollow.php @@ -28,6 +28,7 @@ use Friendica\Core\Protocol; use Friendica\Core\Renderer; use Friendica\Core\Search; use Friendica\Core\System; +use Friendica\Model\Contact; use Friendica\Model\Profile; use Friendica\Network\Probe; @@ -61,8 +62,8 @@ class RemoteFollow extends BaseModule } // Detect the network, make sure the provided URL is valid - $data = Probe::uri($url); - if ($data['network'] == Protocol::PHANTOM) { + $data = Contact::getByURL($url); + if (!$data) { notice(DI::l10n()->t("The provided profile link doesn't seem to be valid")); return; }