aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbangTor <63029179+abangtor@users.noreply.github.com>2021-01-24 18:12:17 +0800
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-03-04 18:02:58 +0000
commitda6736b503439b891a067b60e76cd6b0ef6697b3 (patch)
tree11cf098021fe214dd78c2d2211abeb1971be0697
parent34bd751923d330d775b354e6a3340d51d38fb65e (diff)
downloadnextcloud-server-da6736b503439b891a067b60e76cd6b0ef6697b3.tar.gz
nextcloud-server-da6736b503439b891a067b60e76cd6b0ef6697b3.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>
-rw-r--r--apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php8
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 1958e666503..b0f36a225b9 100644
--- a/apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php
+++ b/apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php
@@ -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(),
+ ];
}
}