diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-03-11 09:28:33 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-03-12 08:03:39 +0000 |
commit | cc9e3a987267c30703644d579258a20b9459f1f2 (patch) | |
tree | 268221432e9676bfb4d081eae0282cc950670990 | |
parent | 5a27942497a5ffe24c3c4f5c8b22b78d89bb17bd (diff) | |
download | nextcloud-server-cc9e3a987267c30703644d579258a20b9459f1f2.tar.gz nextcloud-server-cc9e3a987267c30703644d579258a20b9459f1f2.zip |
fix(lookup-server): Only flag new users for lookup update / deletebackport/51384/stable29
If the flag was already set then we do not need to overwrite it.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
-rw-r--r-- | core/BackgroundJobs/LookupServerSendCheckBackgroundJob.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/BackgroundJobs/LookupServerSendCheckBackgroundJob.php b/core/BackgroundJobs/LookupServerSendCheckBackgroundJob.php index 921f34f5746..b8a6654e577 100644 --- a/core/BackgroundJobs/LookupServerSendCheckBackgroundJob.php +++ b/core/BackgroundJobs/LookupServerSendCheckBackgroundJob.php @@ -45,7 +45,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'); + } }); } } |