diff options
author | ThibG <thib@sitedethib.com> | 2018-10-07 19:45:40 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-10-07 19:45:40 +0200 |
commit | 25744d43b0c9ae58227e1e46ac9e2b33a7944925 (patch) | |
tree | e44874fd01902addde950dadef5091ade759c801 /app | |
parent | 09d789e79bf62138bcaa4f057f88f240e6f20127 (diff) |
Ensure only toots from the reported users are reported (#8916)
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/api/v1/reports_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/reports_controller.rb b/app/controllers/api/v1/reports_controller.rb index 9c6ee0a50..726817927 100644 --- a/app/controllers/api/v1/reports_controller.rb +++ b/app/controllers/api/v1/reports_controller.rb @@ -22,7 +22,7 @@ class Api::V1::ReportsController < Api::BaseController private def reported_status_ids - Status.find(status_ids).pluck(:id) + reported_account.statuses.find(status_ids).pluck(:id) end def status_ids |