1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-24 07:06:18 +09:00

Fix admin actions log crash when displaying updates of deleted announcements (#13489)

Fixes #13487
This commit is contained in:
ThibG 2020-04-17 19:54:58 +02:00 committed by GitHub
parent d18d6c29f3
commit 89077fb657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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