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-04 18:02:58 +0000 |
commit | 961d8ac876328bcfd65fc6a26d3ec3831fe5779b (patch) | |
tree | 1071d54f2a16b027a5fc28bc96e6a3d71b40f0ff | |
parent | 228628f181fa7cb2cd3b72e60322e37d3d1fcec1 (diff) | |
download | nextcloud-server-backport/51229/stable31.tar.gz nextcloud-server-backport/51229/stable31.zip |
fix(lookup_server_connector): fixed publishing of user properties to lookup-serverbackport/51229/stable31
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>
-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 1b0ca0fa576..924dec6762d 100644 --- a/apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php +++ b/apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php @@ -158,9 +158,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(), + ]; } } |