Skip to content

Commit

Permalink
fix: cs fix and psalm error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yemkareems committed Oct 15, 2024
1 parent 1583c3d commit 7222b5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/DigestSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function sendDigests(int $now): void {
continue;
}
$user = $this->userManager->get($user);
if(!$user->isEnabled()) {
if (!$user->isEnabled()) {
// User is disabled so do not send the email but update last sent since after enabling avoid flooding
$this->updateLastSentForUser($user, $now);
continue;
Expand All @@ -85,7 +85,7 @@ public function sendDigests(int $now): void {
}
// We still update the digest time after an failed email,
// so it hopefully works tomorrow
$this->config->setUserValue($user, 'activity', 'digest', $timezoneDigestDay[$timezone]);
$this->config->setUserValue($user->getUID(), 'activity', 'digest', $timezoneDigestDay[$timezone]);
}

$this->activityManager->setRequirePNG(false);
Expand Down

0 comments on commit 7222b5f

Please sign in to comment.