Skip to content
Merged
Changes from 1 commit
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
Next Next commit
fix(sendDigests): catch the case that a specified user is not existin…
…g and log instead

Signed-off-by: Simon L. <[email protected]>
Co-Authored-By: Anna <[email protected]>
  • Loading branch information
szaimen and miaulalala committed Jul 8, 2025
commit ed7296baff30faaffbcb0cd70aead6e8abaee7d8
5 changes: 5 additions & 0 deletions lib/DigestSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ public function sendDigests(int $now): void {
continue;
}
$userObject = $this->userManager->get($user);
if (is_null($userObject)) {
// User does not exist
$this->logger->info("User $user could not be found when sending user digest emails");
continue;
}
if (!$userObject->isEnabled()) {
// User is disabled so do not send the email but update last sent since after enabling avoid flooding
$this->updateLastSentForUser($userObject, $now);
Expand Down
Loading