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

[stable31] fix(lookup-server): Only flag new users for lookup update / delete
This commit is contained in:
John Molakvoæ 2025-03-12 11:14:13 +01:00 committed by GitHub
commit d5987f857c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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');
}
});
}
}