]> git.mxchange.org Git - friendica.git/commitdiff
Cleaning confirm
authorMichael Vogel <icarus@dabo.de>
Fri, 3 May 2019 04:17:26 +0000 (06:17 +0200)
committerMichael Vogel <icarus@dabo.de>
Fri, 3 May 2019 04:17:26 +0000 (06:17 +0200)
mod/dfrn_confirm.php

index 97d19f1b71babd53956b24cb1d3917bdc32d2a46..531c164d8022cceb0eb74927dd893f0481c40e00 100644 (file)
@@ -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) {