Skip to content

Commit

Permalink
Merge pull request #51229 from nextcloud/fix/lookup-server
Browse files Browse the repository at this point in the history
fix(lookup_server_connector): correctly handle account properties
  • Loading branch information
susnux authored Mar 4, 2025
2 parents 2ef04bf + f44576b commit 5305e6a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/lookup_server_connector/lib/BackgroundJobs/RetryJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,13 @@ protected function getUserAccountData(IUser $user): array {
$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(),
];
}
}

Expand Down

0 comments on commit 5305e6a

Please sign in to comment.