Skip to content

Commit

Permalink
Merge pull request #1843 from nextcloud/backport/1840/stable28
Browse files Browse the repository at this point in the history
[stable28] fix(mail): Use parsed action label in email notification
  • Loading branch information
nickvergessen committed Mar 5, 2024
2 parents c34cf63 + dbc4340 commit abc3fa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MailNotifications.php
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 abc3fa1

Please sign in to comment.