0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-04-28 11:03:00 +00:00

fix(lookup-server): Only flag new users for lookup update / delete

If the flag was already set then we do not need to overwrite it.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2025-03-11 09:28:33 +01:00
parent 21c09e4816
commit 712fe45f46
No known key found for this signature in database
GPG key ID: 45FAE7268762B400

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