aboutsummaryrefslogtreecommitdiffstats
path: root/core/BackgroundJobs
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:04:53 +0000
commit16ef867418ceb962e1b18a3fc4632227886cc10a (patch)
tree3be3ce2e327ba7880838decdf22c467d38d6cda2 /core/BackgroundJobs
parent6596946df9d07bf2cefb26d437854166bd3ee6be (diff)
downloadnextcloud-server-backport/51384/stable30.tar.gz
nextcloud-server-backport/51384/stable30.zip
fix(lookup-server): Only flag new users for lookup update / deletebackport/51384/stable30
If the flag was already set then we do not need to overwrite it. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'core/BackgroundJobs')
-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');
+ }
});
}
}