diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2025-03-12 11:14:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-12 11:14:47 +0100 |
commit | 241fcb0f32ee5a850642f5b7cd98dcf99f80d75b (patch) | |
tree | 0b4d26552534ff331d750dd48d6bf4330e3e2596 | |
parent | d92903c7e1e55ae056f214249b1c5681ff8cd613 (diff) | |
parent | cc9e3a987267c30703644d579258a20b9459f1f2 (diff) | |
download | nextcloud-server-241fcb0f32ee5a850642f5b7cd98dcf99f80d75b.tar.gz nextcloud-server-241fcb0f32ee5a850642f5b7cd98dcf99f80d75b.zip |
Merge pull request #51415 from nextcloud/backport/51384/stable29
[stable29] fix(lookup-server): Only flag new users for lookup update / delete
-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'); + } }); } } |