Cleaning confirm
This commit is contained in:
parent
949fd1e8bf
commit
6c34196264
|
@ -24,7 +24,6 @@ use Friendica\Core\Logger;
|
||||||
use Friendica\Core\Protocol;
|
use Friendica\Core\Protocol;
|
||||||
use Friendica\Core\System;
|
use Friendica\Core\System;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use Friendica\Model\APContact;
|
|
||||||
use Friendica\Model\Contact;
|
use Friendica\Model\Contact;
|
||||||
use Friendica\Model\Group;
|
use Friendica\Model\Group;
|
||||||
use Friendica\Model\User;
|
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
|
// 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'])) {
|
if (($network === Protocol::DFRN) && empty($dfrn_id)) {
|
||||||
$apcontact = APContact::getByURL($contact['url']);
|
$network = Contact::getProtocol($contact['url'], $contact['network']);
|
||||||
if (!empty($apcontact)) {
|
|
||||||
$network = Protocol::ACTIVITYPUB;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($network === Protocol::DFRN) {
|
if ($network === Protocol::DFRN) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user