From: Michael Date: Sat, 2 Nov 2019 16:20:17 +0000 (+0000) Subject: Respect "manually improve" during contact request X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e27ebaee484734aa0aae7e8bbeca8df71a8027aa;p=friendica.git Respect "manually improve" during contact request --- diff --git a/src/Model/Contact.php b/src/Model/Contact.php index c7cfddbb84..a220b237d5 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -2298,7 +2298,16 @@ class Contact extends BaseObject $hidden = (($protocol === Protocol::MAIL) ? 1 : 0); - $pending = in_array($protocol, [Protocol::ACTIVITYPUB]); + 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])) { $writeable = 1;