From 580699227ca5256292a15636d39d108891b24511 Mon Sep 17 00:00:00 2001 From: Jeong Arm Date: Fri, 30 Jun 2023 00:54:09 +0900 Subject: [PATCH] Show timestamp when user deletes their account on admin dashboard --- app/helpers/admin/dashboard_helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/helpers/admin/dashboard_helper.rb b/app/helpers/admin/dashboard_helper.rb index 6096ff1381e..8938c13da8b 100644 --- a/app/helpers/admin/dashboard_helper.rb +++ b/app/helpers/admin/dashboard_helper.rb @@ -25,6 +25,8 @@ module Admin::DashboardHelper [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