From 7ccb357879066940109d396d0d47aa4e94b2aef5 Mon Sep 17 00:00:00 2001 From: MAEDA Go Date: Wed, 25 Dec 2024 23:03:58 +0900 Subject: [PATCH 1/2] Increase the maximum description length to 240 characters in the Activity view --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index fe250f7f3..b50930676 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -414,7 +414,7 @@ module ApplicationHelper end def format_activity_description(text) - h(text.to_s.truncate(120).gsub(%r{[\r\n]*<(pre|code)>.*$}m, '...')). + h(text.to_s.truncate(240).gsub(%r{[\r\n]*<(pre|code)>.*$}m, '...')). gsub(/[\r\n]+/, "
").html_safe end -- 2.47.1