Skip to content

Commit

Permalink
Fix crash when viewing a moderation appeal and the moderator account …
Browse files Browse the repository at this point in the history
…has been deleted (mastodon#25900)

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
  • Loading branch information
2 people authored and vmstan committed Jan 5, 2024
1 parent 6ac9e3d commit dfe2e6d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dfe2e6d

Please sign in to comment.