From d1ac420303bfc4326a0ce0cab29f7d629eee8f3f Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Thu, 21 Dec 2023 00:06:54 +0100 Subject: [PATCH] use `question_markdown` helper for questions in notifications --- app/views/notifications/type/_answer.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/notifications/type/_answer.html.haml b/app/views/notifications/type/_answer.html.haml index a85836eb..78cdd37d 100644 --- a/app/views/notifications/type/_answer.html.haml +++ b/app/views/notifications/type/_answer.html.haml @@ -11,7 +11,7 @@ .list-group .list-group-item %h6.notification__list-heading= t("activerecord.models.question.one") - = markdown notification.target.question.content[0..60] + (notification.target.question.content.length > 60 ? "[…]" : "") + = question_markdown notification.target.question.content[0..60] + (notification.target.question.content.length > 60 ? "[…]" : "") .list-group-item %h6.notification__list-heading= t("activerecord.models.answer.one") = markdown notification.target.content[0..60] + (notification.target.content.length > 60 ? "[…]" : "")