From: Michael Vogel Date: Fri, 3 May 2019 04:17:26 +0000 (+0200) Subject: Cleaning confirm X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6c341962648b73c935c2de26996b07332b776a1f;p=friendica.git Cleaning confirm --- diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php index 97d19f1b71..531c164d80 100644 --- a/mod/dfrn_confirm.php +++ b/mod/dfrn_confirm.php @@ -24,7 +24,6 @@ use Friendica\Core\Logger; use Friendica\Core\Protocol; use Friendica\Core\System; use Friendica\Database\DBA; -use Friendica\Model\APContact; use Friendica\Model\Contact; use Friendica\Model\Group; use Friendica\Model\User; @@ -145,11 +144,8 @@ function dfrn_confirm_post(App $a, $handsfree = null) } // an empty DFRN-ID tells us that it had been a request via AP from a Friendica contact - if (($network === Protocol::DFRN) && empty($dfrn_id) && !empty($contact['hub-verify'])) { - $apcontact = APContact::getByURL($contact['url']); - if (!empty($apcontact)) { - $network = Protocol::ACTIVITYPUB; - } + if (($network === Protocol::DFRN) && empty($dfrn_id)) { + $network = Contact::getProtocol($contact['url'], $contact['network']); } if ($network === Protocol::DFRN) {