aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbangTor <63029179+abangtor@users.noreply.github.com>2021-01-24 18:12:17 +0800
committerFerdinand Thiessen <opensource@fthiessen.de>2025-03-04 17:02:15 +0100
commitf44576bc2c18e14d077da1a1834e4f77b095d16f (patch)
tree9be10f28db7f684ee97f4af78c739086f61c6188
parent9bbe8c59d75de415a81e3fcfc6b6445689df3e83 (diff)
downloadnextcloud-server-fix/lookup-server.tar.gz
nextcloud-server-fix/lookup-server.zip
fix(lookup_server_connector): fixed publishing of user properties to lookup-serverfix/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 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(),
+ ];
}
}