0
0
Fork 0

Fix being able to report otherwise inaccessible statuses (#18528)

This commit is contained in:
Eugen Rochko 2022-05-26 22:08:02 +02:00 committed by GitHub
parent 1ff4877945
commit c4d2c39a75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -57,7 +57,7 @@ class ReportService < BaseService
end
def reported_status_ids
@target_account.statuses.with_discarded.find(Array(@status_ids)).pluck(:id)
AccountStatusesFilter.new(@target_account, @source_account).results.with_discarded.find(Array(@status_ids)).pluck(:id)
end
def payload