From c4790c13c7cbc89c28bcf4e1407794c7f01d8390 Mon Sep 17 00:00:00 2001 From: yemkareems Date: Tue, 24 Sep 2024 17:13:15 +0530 Subject: [PATCH] fix: do not send daily digest email to user who is disabled --- lib/DigestSender.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DigestSender.php b/lib/DigestSender.php index 75adc28cb..d2f44caa3 100644 --- a/lib/DigestSender.php +++ b/lib/DigestSender.php @@ -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);