Skip to content

Commit

Permalink
Merge pull request #1842 from nextcloud/backport/1840/stable27
Browse files Browse the repository at this point in the history
[stable27] fix(mail): Use parsed action label in email notification
  • Loading branch information
nickvergessen authored Mar 5, 2024
2 parents 7e177b8 + 2e4b3e0 commit f131492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MailNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ protected function prepareEmailMessage(string $uid, array $notifications, string
$actions = $notification->getParsedActions();
foreach ($actions as $action) {
if ($action->getRequestType() === IAction::TYPE_WEB) {
$template->addBodyButton($action->getLabel(), $action->getLink());
$template->addBodyButton($action->getParsedLabel(), $action->getLink());
}
}
} catch (\Throwable $e) {
Expand Down

0 comments on commit f131492

Please sign in to comment.