mirror of
https://github.com/friendica/friendica
synced 2024-11-19 09:43:45 +00:00
Merge pull request #7800 from annando/manually-improve
AP: Respect "manually approve" during contact request
This commit is contained in:
commit
b8a22de2d2
1 changed files with 7 additions and 1 deletions
|
@ -2298,7 +2298,13 @@ class Contact extends BaseObject
|
|||
|
||||
$hidden = (($protocol === Protocol::MAIL) ? 1 : 0);
|
||||
|
||||
$pending = in_array($protocol, [Protocol::ACTIVITYPUB]);
|
||||
$pending = false;
|
||||
if ($protocol == Protocol::ACTIVITYPUB) {
|
||||
$apcontact = APContact::getByURL($url, false);
|
||||
if (isset($apcontact['manually-approve'])) {
|
||||
$pending = (bool)$apcontact['manually-approve'];
|
||||
}
|
||||
}
|
||||
|
||||
if (in_array($protocol, [Protocol::MAIL, Protocol::DIASPORA, Protocol::ACTIVITYPUB])) {
|
||||
$writeable = 1;
|
||||
|
|
Loading…
Reference in a new issue