about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2020-04-17 20:16:24 +0200
committerThibaut Girka <thib@sitedethib.com>2020-04-17 20:16:24 +0200
commit81e49ba5c6107927d12bd222b7081f63ba63bdc9 (patch)
treed88e34d9a103f23b7ab568e92bd9b2e6ab679a47 /app/helpers
parent5fdd5eef5a6b05b072a57e065954fdcb0b4a8898 (diff)
parent89077fb65713ece348fdbee1986d1593383ba801 (diff)
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/admin/action_logs_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/admin/action_logs_helper.rb b/app/helpers/admin/action_logs_helper.rb
index 88d6e4580..8e398c3b2 100644
--- a/app/helpers/admin/action_logs_helper.rb
+++ b/app/helpers/admin/action_logs_helper.rb
@@ -47,7 +47,7 @@ module Admin::ActionLogsHelper
         I18n.t('admin.action_logs.deleted_status')
       end
     when 'Announcement'
-      truncate(attributes['text'])
+      truncate(attributes['text'].is_a?(Array) ? attributes['text'].last : attributes['text'])
     end
   end
 end