Skip to content

Commit 241fcb0

Browse files
authored
Merge pull request #51415 from nextcloud/backport/51384/stable29
[stable29] fix(lookup-server): Only flag new users for lookup update / delete
2 parents d92903c + cc9e3a9 commit 241fcb0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

core/BackgroundJobs/LookupServerSendCheckBackgroundJob.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ public function __construct(
4545
*/
4646
public function run($argument): void {
4747
$this->userManager->callForSeenUsers(function (IUser $user) {
48-
$this->config->setUserValue($user->getUID(), 'lookup_server_connector', 'dataSend', '1');
48+
// If the user data was not updated yet (check if LUS is enabled and if then update on LUS or delete on LUS)
49+
// then we need to flag the user data to be checked
50+
if ($this->config->getUserValue($user->getUID(), 'lookup_server_connector', 'dataSend', '') === '') {
51+
$this->config->setUserValue($user->getUID(), 'lookup_server_connector', 'dataSend', '1');
52+
}
4953
});
5054
}
5155
}

0 commit comments

Comments
 (0)