]> cat aescling's git repositories - mastodon.git/commitdiff
Ensure only toots from the reported users are reported (#8916)
authorThibG <thib@sitedethib.com>
Sun, 7 Oct 2018 17:45:40 +0000 (19:45 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 7 Oct 2018 17:45:40 +0000 (19:45 +0200)
app/controllers/api/v1/reports_controller.rb

index 9c6ee0a50c6e933709acf284b1a621cfd0ed00b6..726817927e4089deaf920d947e29f16b5ba69a65 100644 (file)
@@ -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