diff options
author | Rob Thomas <xrobau@gmail.com> | 2023-09-19 01:41:32 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-18 17:41:32 +0200 |
commit | 200312e8bed0d91c576cabcdf2ffe0173778cccd (patch) | |
tree | 24884ab98c3832a9c4587bda76dce84bbe7f069b /app/views/admin | |
parent | 1b4902fabf1a43684552b3e5f57616174997b541 (diff) |
Fix crash when viewing a moderation appeal and the moderator account has been deleted (#25900)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/account_warnings/_account_warning.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/account_warnings/_account_warning.html.haml b/app/views/admin/account_warnings/_account_warning.html.haml index 03063518570..85bac789f73 100644 --- a/app/views/admin/account_warnings/_account_warning.html.haml +++ b/app/views/admin/account_warnings/_account_warning.html.haml @@ -5,7 +5,7 @@ = fa_icon 'warning' .log-entry__content .log-entry__title - = t(account_warning.action, scope: 'admin.strikes.actions', name: content_tag(:span, account_warning.account.username, class: 'username'), target: content_tag(:span, account_warning.target_account.pretty_acct, class: 'target')).html_safe + = t(account_warning.action, scope: 'admin.strikes.actions', name: content_tag(:span, account_warning.account ? account_warning.account.username : I18n.t('admin.action_logs.deleted_account'), class: 'username'), target: content_tag(:span, account_warning.target_account.pretty_acct, class: 'target')).html_safe .log-entry__timestamp %time.formatted{ datetime: account_warning.created_at.iso8601 } = l(account_warning.created_at) |