diff options
author | AbangTor <63029179+abangtor@users.noreply.github.com> | 2021-01-24 18:12:17 +0800 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-03-12 07:26:04 +0000 |
commit | 10a87bbda5b5115461b97a763656fad05b7fe402 (patch) | |
tree | b09173656d94b611ba6722b38c226d09f93adfcd /apps | |
parent | defbdf26dae06242a6ed1ee6ad46804f4679e55c (diff) | |
download | nextcloud-server-10a87bbda5b5115461b97a763656fad05b7fe402.tar.gz nextcloud-server-10a87bbda5b5115461b97a763656fad05b7fe402.zip |
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>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php b/apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php index 7f42a91dc81..be73e71d8c0 100644 --- a/apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php +++ b/apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php @@ -190,9 +190,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(), + ]; } } |