diff --git a/lib/DigestSender.php b/lib/DigestSender.php index a9f644e90..0ec19b2dd 100644 --- a/lib/DigestSender.php +++ b/lib/DigestSender.php @@ -134,6 +134,7 @@ private function getLastSendActivity(string $user, int $now): int { public function sendDigestForUser(string $uid, int $now, string $timezone, string $language) { $l10n = $this->l10nFactory->get('activity', $language); + $this->groupHelper->setL10n($l10n); $lastSend = $this->getLastSendActivity($uid, $now); $user = $this->userManager->get($uid); if ($lastSend === 0) { diff --git a/lib/GroupHelper.php b/lib/GroupHelper.php index fc5119e5a..9d0bb78f4 100644 --- a/lib/GroupHelper.php +++ b/lib/GroupHelper.php @@ -143,7 +143,9 @@ public function getActivities() { * @return IEvent[] */ public function getEvents(): array { - return $this->event; + $return = $this->event; + $this->event = []; + return $return; } /**