Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(lookup-server): Only flag new users for lookup update / delete
If the flag was already set then we do not need to overwrite it.

Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux authored and backportbot[bot] committed Mar 12, 2025
commit cc9e3a987267c30703644d579258a20b9459f1f2
6 changes: 5 additions & 1 deletion core/BackgroundJobs/LookupServerSendCheckBackgroundJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ public function __construct(
*/
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');
}
});
}
}
Loading