Skip to content

Commit

Permalink
Show timestamp when the user deletes their account on admin dashboard (
Browse files Browse the repository at this point in the history
…mastodon#25640)

Co-authored-by: Claire <[email protected]>
  • Loading branch information
tribela and ClearlyClaire authored Oct 1, 2024
1 parent df98cf7 commit 65508bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/helpers/admin/dashboard_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def relevant_account_timestamp(account)
[account.user_current_sign_in_at, false]
elsif account.user_pending?
[account.user_created_at, true]
elsif account.suspended_at.present? && account.local? && account.user.nil?
[account.suspended_at, true]
elsif account.last_status_at.present?
[account.last_status_at, true]
else
Expand Down

0 comments on commit 65508bb

Please sign in to comment.