diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-05-23 20:38:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 20:38:29 +0200 |
commit | e5997a195602624efdb366e9f09ffa377e859580 (patch) | |
tree | 9a7f68df05d81c2807976feb2b3df58e2210386d /app/models/admin | |
parent | a9b64b24d6c076cb96a66307c07d4f0158dc07da (diff) |
Fix warning an account outside of a report closing all reports for that account (#18387)
* Fix warning an account outside of a report closing all reports for that account * Make it clear what actions solve other reports * Revert "Make it clear what actions solve other reports" This reverts commit ad006de821f72e75480701298d13f0945b509059.
Diffstat (limited to 'app/models/admin')
-rw-r--r-- | app/models/admin/account_action.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/admin/account_action.rb b/app/models/admin/account_action.rb index 237975880..aed3bc0c7 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 |