mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Ensure only toots from the reported users are reported (#8916)
This commit is contained in:
parent
485dc7d559
commit
6984396b11
@ -27,7 +27,7 @@ class Api::V1::ReportsController < Api::BaseController
|
|||||||
private
|
private
|
||||||
|
|
||||||
def reported_status_ids
|
def reported_status_ids
|
||||||
Status.find(status_ids).pluck(:id)
|
reported_account.statuses.find(status_ids).pluck(:id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def status_ids
|
def status_ids
|
||||||
|
Loading…
Reference in New Issue
Block a user