aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2025-03-11 09:28:33 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-03-12 08:06:06 +0000
commit00141635dd97373cf47c0d0f2a1922ed70612cc5 (patch)
treeba5a2c9725df6dfcb780b3c3873c450de1e2d884
parentbef1a658b5822a5ce4f259e9e42a7fe4c8078da0 (diff)
downloadnextcloud-server-backport/51384/stable31.tar.gz
nextcloud-server-backport/51384/stable31.zip
fix(lookup-server): Only flag new users for lookup update / deletebackport/51384/stable31
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.php6
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');
+ }
});
}
}