From 4bd553020b5f71fe48f0f6ea24e9319a02a40fb5 Mon Sep 17 00:00:00 2001 From: yemkareems Date: Fri, 18 Oct 2024 10:10:34 +0530 Subject: [PATCH] fix: updateLastSentForUser changed to private and removed count as it is not used Signed-off-by: yemkareems --- lib/DigestSender.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/DigestSender.php b/lib/DigestSender.php index b7d59d1d6..f5b50dfd1 100644 --- a/lib/DigestSender.php +++ b/lib/DigestSender.php @@ -110,11 +110,11 @@ private function getLastSendActivity(string $user, int $now): int { return $this->data->getFirstActivitySince($user, $now - (24 * 60 * 60)); } - public function updateLastSentForUser(IUser $user, int $now): void { + private function updateLastSentForUser(IUser $user, int $now): void { $uid = $user->getUID(); $lastSend = $this->getLastSendActivity($uid, $now); - ['count' => $count, 'max' => $lastActivityId] = $this->data->getActivitySince($uid, $lastSend, true); + ['max' => $lastActivityId] = $this->data->getActivitySince($uid, $lastSend, true); $lastActivityId = (int)$lastActivityId; $this->config->setUserValue($uid, 'activity', 'activity_digest_last_send', (string)$lastActivityId);