diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-03-11 09:28:33 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-03-11 09:28:33 +0100 |
commit | 712fe45f46e34cf1c8f7ad9d73c7b58e7616a64d (patch) | |
tree | d20421c135b9af064ed047c01a4f446d465482a5 | |
parent | 21c09e4816cd76288a5d73d2910bde989bc814ae (diff) | |
download | nextcloud-server-fix/lus-background-job.tar.gz nextcloud-server-fix/lus-background-job.zip |
fix(lookup-server): Only flag new users for lookup update / deletefix/lus-background-job
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 01eec5b3ce1..906a80019eb 100644 --- a/core/BackgroundJobs/LookupServerSendCheckBackgroundJob.php +++ b/core/BackgroundJobs/LookupServerSendCheckBackgroundJob.php @@ -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'); + } }); } } |