mirror of
https://github.com/friendica/friendica
synced 2025-04-29 19:44:22 +02:00
Now storing the "manually approve" data / fix update routine
This commit is contained in:
parent
2f427e9daa
commit
5554448162
4 changed files with 15 additions and 9 deletions
|
@ -157,7 +157,7 @@ class APContact extends BaseObject
|
|||
|
||||
$apcontact['pubkey'] = trim(JsonLD::fetchElement($compacted, 'w3id:publicKey', 'w3id:publicKeyPem'));
|
||||
|
||||
$manually_approve = JsonLD::fetchElement($compacted, 'as:manuallyApprovesFollowers');
|
||||
$apcontact['manually-approve'] = (int)JsonLD::fetchElement($compacted, 'as:manuallyApprovesFollowers');
|
||||
|
||||
// To-Do
|
||||
|
||||
|
@ -204,8 +204,8 @@ class APContact extends BaseObject
|
|||
$contact_fields['prv'] = false;
|
||||
} else {
|
||||
// Otherwise set the corresponding forum type
|
||||
$contact_fields['forum'] = !$manually_approve;
|
||||
$contact_fields['prv'] = $manually_approve;
|
||||
$contact_fields['forum'] = !$apcontact['manually-approve'];
|
||||
$contact_fields['prv'] = $apcontact['manually-approve'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue