mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
fix(lookup_server_connector): fixed publishing of user properties to lookup-server
Fix of the bug in the lookup_server_connector module to publish public user information to the lookup-server. As described in issue [#25290](https://github.com/nextcloud/server/issues/25290) Signed-off-by: AbangTor <63029179+abangtor@users.noreply.github.com>
This commit is contained in:
parent
34bd751923
commit
da6736b503
1 changed files with 6 additions and 2 deletions
|
|
@ -164,9 +164,13 @@ class RetryJob extends Job {
|
|||
$account = $this->accountManager->getAccount($user);
|
||||
|
||||
$publicData = [];
|
||||
foreach ($account->getProperties() as $property) {
|
||||
foreach ($account->getAllProperties() as $property) {
|
||||
if ($property->getScope() === IAccountManager::SCOPE_PUBLISHED) {
|
||||
$publicData[$property->getName()] = $property->getValue();
|
||||
$publicData[$property->getName()] = [
|
||||
'value' => $property->getValue(),
|
||||
'verified' => $property->getVerified(),
|
||||
'signature' => $property->getVerificationData(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue