mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-22 04:25:06 +01:00
Fix warning an account outside of a report closing all reports for that account
This commit is contained in:
parent
898fe2fa8e
commit
8fa6887efd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user