Merge pull request #51238 from nextcloud/backport/51229/stable30

[stable30] fix(lookup_server_connector): correctly handle account properties
pull/51281/head
Ferdinand Thiessen 2025-03-05 11:26:48 +07:00 committed by GitHub
commit 432d95e5d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 4 deletions

@ -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(),
];
}
}

@ -64,7 +64,11 @@ describe('files_trashbin: download files', { testIsolation: true }, () => {
cy.get('[data-cy-files-list-row-checkbox]').should('have.length', 2)
selectAllFiles()
cy.get('.files-list__selected').should('have.text', '2 selected')
cy.get('[data-cy-files-list-selection-action="restore"]').should('be.visible')
cy.get('[data-cy-files-list-selection-action="download"]').should('not.exist')
cy.get('.files-list__row-actions-batch')
.should('be.visible')
.within(() => {
cy.findByRole('button', { name: /restore/i }).should('be.visible')
cy.findByRole('button', { name: /download/i }).should('not.exist')
})
})
})