Respect "manually-improve" during contact request
This commit is contained in:
parent
e27ebaee48
commit
9461446374
1 changed files with 1 additions and 4 deletions
|
@ -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])) {
|
||||
|
|
Loading…
Reference in a new issue