Skip to content

Commit eb5e44f

Browse files
Merge pull request #1724 from nextcloud/fix/add-more-link
feat(DigestSender): Make `and X more` a link
2 parents 5b67f57 + 3783902 commit eb5e44f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/DigestSender.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,12 @@ public function sendDigestForUser(string $uid, int $now, string $timezone, strin
157157
}
158158

159159
if ($skippedCount) {
160-
$template->addBodyListItem($l10n->n('and %n more ', 'and %n more ', $skippedCount));
160+
$andMoreText = $l10n->n('and %n more…', 'and %n more…', $skippedCount);
161+
$url = $this->urlGenerator->linkToRouteAbsolute('activity.Activities.showList', [ 'filter' => 'all' ]);
162+
$template->addBodyListItem(
163+
'<a href="' . $url . '">' . htmlspecialchars($andMoreText) . '</a>',
164+
plainText: $andMoreText,
165+
);
161166
}
162167

163168
$template->addFooter('', $language);

0 commit comments

Comments
 (0)