Skip to content

Commit

Permalink
Merge pull request #1841 from nextcloud/backport/1840/stable26
Browse files Browse the repository at this point in the history
[stable26] fix(mail): Use parsed action label in email notification
  • Loading branch information
nickvergessen committed Mar 5, 2024
2 parents 2ef76fb + 6f0f2d8 commit eff6730
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 @@ -288,7 +288,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 eff6730

Please sign in to comment.