Fix being able to report otherwise inaccessible statuses (#18528)
This commit is contained in:
parent
1ff4877945
commit
c4d2c39a75
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue