Respect "manually-improve" during contact request

This commit is contained in:
Michael 2019-11-02 16:24:54 +00:00
parent e27ebaee48
commit 9461446374
1 changed files with 1 additions and 4 deletions

View File

@ -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])) {