mirror of
https://github.com/friendica/friendica
synced 2024-12-23 10:00:20 +00:00
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);
|
$hidden = (($protocol === Protocol::MAIL) ? 1 : 0);
|
||||||
|
|
||||||
|
$pending = false;
|
||||||
if ($protocol == Protocol::ACTIVITYPUB) {
|
if ($protocol == Protocol::ACTIVITYPUB) {
|
||||||
$apcontact = APContact::getByURL($url, false);
|
$apcontact = APContact::getByURL($url, false);
|
||||||
if (isset($apcontact['manually-approve'])) {
|
if (isset($apcontact['manually-approve'])) {
|
||||||
$pending = (bool)$apcontact['manually-approve'];
|
$pending = (bool)$apcontact['manually-approve'];
|
||||||
} else {
|
|
||||||
$pending = true;
|
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
$pending = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (in_array($protocol, [Protocol::MAIL, Protocol::DIASPORA, Protocol::ACTIVITYPUB])) {
|
if (in_array($protocol, [Protocol::MAIL, Protocol::DIASPORA, Protocol::ACTIVITYPUB])) {
|
||||||
|
|
Loading…
Reference in a new issue