Fix comment notifications displaying escaped HTML

This commit is contained in:
Andreas Nedbal 2022-07-16 22:15:27 +02:00 committed by Karina Kwiatek
parent ca2cf727e1
commit 2722f4fffb
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
- else - else
= t(".heading_html", = t(".heading_html",
user: user_screen_name(notification.target.user), user: user_screen_name(notification.target.user),
answer: link_to(t(".other.link_text", user: user_screen_name(notification.target.answer.user)), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id)), answer: link_to(t(".other.link_text_html", user: user_screen_name(notification.target.answer.user)), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id)),
time: time_tooltip(notification.target)) time: time_tooltip(notification.target))
.list-group .list-group
.list-group-item .list-group-item

View File

@ -124,7 +124,7 @@ en:
passive: passive:
link_text: "their answer" link_text: "their answer"
other: other:
link_text: "%{user}'s answer" link_text_html: "%{user}'s answer"
reaction: reaction:
heading_html: "%{user} smiled %{type} %{time} ago" heading_html: "%{user} smiled %{type} %{time} ago"
answer: answer: