From cb673522758b7b992406d94826137484e749ec22 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Mon, 8 Sep 2025 08:23:53 +0200 Subject: [PATCH] Don't render HTML stripping the tags for comment bodies, use to_plain_text instead This will prevent error when generating notification bundles such as: Type ActionView::Template::Error Message undefined method 'rails_blob_path' for an instance of # We could just use the _url variant but this feels better nevertheless --- app/helpers/notifications_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb index b97027d9b..3c7f3d0e0 100644 --- a/app/helpers/notifications_helper.rb +++ b/app/helpers/notifications_helper.rb @@ -85,7 +85,7 @@ module NotificationsHelper def comment_notification_body(event) comment = event.eventable - strip_tags(comment.body.to_s).truncate(200) + comment.body.to_plain_text.truncate(200) end def card_notification_title(card)