Skip to content

Commit

Permalink
fix: updateLastSentForUser changed to private and removed count as it…
Browse files Browse the repository at this point in the history
… is not used

Signed-off-by: yemkareems <yemkareems@gmail.com>
  • Loading branch information
yemkareems committed Oct 18, 2024
1 parent 451ab20 commit 4bd5530
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 @@ -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);
Expand Down

0 comments on commit 4bd5530

Please sign in to comment.