Skip to content

Commit

Permalink
fix: conflicts resolved
Browse files Browse the repository at this point in the history
Signed-off-by: yemkareems <[email protected]>
  • Loading branch information
yemkareems committed Oct 29, 2024
1 parent 5ac1928 commit 6db3f79
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/DigestSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ public function sendDigestForUser(IUser $user, int $now, string $timezone, strin
$this->activityManager->setCurrentUserId($uid);

['count' => $count, 'max' => $lastActivityId] = $this->data->getActivitySince($uid, $lastSend, true);
$count = (int) $count;
$lastActivityId = (int) $lastActivityId;
$count = (int)$count;
$lastActivityId = (int)$lastActivityId;
if ($count === 0) {
return;
}
Expand Down Expand Up @@ -198,7 +198,7 @@ public function sendDigestForUser(IUser $user, int $now, string $timezone, strin
$this->activityManager->setCurrentUserId(null);
try {
$this->mailer->send($message);
$this->config->setUserValue($user->getUID(), 'activity', 'activity_digest_last_send', (string) $lastActivityId);
$this->config->setUserValue($uid, 'activity', 'activity_digest_last_send', (string)$lastActivityId);
} catch (\Exception $e) {
$this->logger->error($e->getMessage());
return;
Expand All @@ -219,9 +219,9 @@ protected function getHTMLSubject(IEvent $event): string {
$placeholders[] = '{' . $placeholder . '}';

if ($parameter['type'] === 'file') {
$replacement = (string) $parameter['path'];
$replacement = (string)$parameter['path'];
} else {
$replacement = (string) $parameter['name'];
$replacement = (string)$parameter['name'];
}

if (isset($parameter['link'])) {
Expand Down

0 comments on commit 6db3f79

Please sign in to comment.