Skip to content

Commit

Permalink
Display deleted users' role as “Suspended” (mastodon#6080)
Browse files Browse the repository at this point in the history
Deleted users are technically suspended, but the code displaying their status
in the admin interface was broken and displayed a javascript object holding
translations of the possible user roles instead.
  • Loading branch information
ClearlyClaire authored and Gargron committed Dec 22, 2017
1 parent 81d29e4 commit 6eb6026
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/admin/accounts/_account.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
= link_to account.domain, admin_accounts_path(by_domain: account.domain)
%td
- if account.local?
= t("admin.accounts.roles.#{account.user&.role}")
- if account.user.nil?
= t("admin.accounts.moderation.suspended")
- else
= t("admin.accounts.roles.#{account.user.role}")
- else
= account.protocol.humanize
%td
Expand Down

0 comments on commit 6eb6026

Please sign in to comment.