summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/admin/account_action.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/admin/account_action.rb b/app/models/admin/account_action.rb
index 23797588012..aed3bc0c7d7 100644
--- a/app/models/admin/account_action.rb
+++ b/app/models/admin/account_action.rb
@@ -164,8 +164,8 @@ class Admin::AccountAction
def reports
@reports ||= begin
- if type == 'none' && with_report?
- [report]
+ if type == 'none'
+ with_report? ? [report] : []
else
Report.where(target_account: target_account).unresolved
end