about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-05-26 22:08:02 +0200
committerGitHub <noreply@github.com>2022-05-26 22:08:02 +0200
commitc4d2c39a75eccdbc60c3540c259e1e7ea5881ac6 (patch)
treed65b111eeeb019673a4993f7888d2b8eebb3e11a /app/services
parent1ff4877945e18820f3e518a1cfbac243da65e1a5 (diff)
Fix being able to report otherwise inaccessible statuses (#18528)
Diffstat (limited to 'app/services')
-rw-r--r--app/services/report_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/report_service.rb b/app/services/report_service.rb
index 9d784c341..d251bb33f 100644
--- a/app/services/report_service.rb
+++ b/app/services/report_service.rb
@@ -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