From 94614463748a705c05b37839d21c8c3b4a403a1c Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 2 Nov 2019 16:24:54 +0000 Subject: [PATCH] Respect "manually-improve" during contact request --- src/Model/Contact.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Model/Contact.php b/src/Model/Contact.php index a220b237d5..a57c7b96ef 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -2298,15 +2298,12 @@ class Contact extends BaseObject $hidden = (($protocol === Protocol::MAIL) ? 1 : 0); + $pending = false; if ($protocol == Protocol::ACTIVITYPUB) { $apcontact = APContact::getByURL($url, false); if (isset($apcontact['manually-approve'])) { $pending = (bool)$apcontact['manually-approve']; - } else { - $pending = true; } - } else { - $pending = false; } if (in_array($protocol, [Protocol::MAIL, Protocol::DIASPORA, Protocol::ACTIVITYPUB])) { -- 2.39.5