Skip to content

Commit

Permalink
fix: do not send daily digest email to user who is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
yemkareems committed Sep 24, 2024
1 parent f438f56 commit c4790c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DigestSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function sendDigestForUser(string $uid, int $now, string $timezone, strin
$this->groupHelper->setL10n($l10n);
$lastSend = $this->getLastSendActivity($uid, $now);
$user = $this->userManager->get($uid);
if ($lastSend === 0) {
if ($lastSend === 0 || !$user->isEnabled()) {
return;
}
$this->activityManager->setCurrentUserId($uid);
Expand Down

0 comments on commit c4790c1

Please sign in to comment.