Merge pull request #51417 from nextcloud/backport/51384/stable31

[stable31] fix(lookup-server): Only flag new users for lookup update / delete
pull/51428/head
John Molakvoæ 2025-03-12 11:14:13 +07:00 committed by GitHub
commit d5987f857c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

@ -28,7 +28,11 @@ class LookupServerSendCheckBackgroundJob extends QueuedJob {
*/
public function run($argument): void {
$this->userManager->callForSeenUsers(function (IUser $user) {
$this->config->setUserValue($user->getUID(), 'lookup_server_connector', 'dataSend', '1');
// If the user data was not updated yet (check if LUS is enabled and if then update on LUS or delete on LUS)
// then we need to flag the user data to be checked
if ($this->config->getUserValue($user->getUID(), 'lookup_server_connector', 'dataSend', '') === '') {
$this->config->setUserValue($user->getUID(), 'lookup_server_connector', 'dataSend', '1');
}
});
}
}