about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-11-04 16:31:44 +0100
committerGitHub <noreply@github.com>2022-11-04 16:31:44 +0100
commitc2170991c7889b8f6c6434f416cb0a8450db25a1 (patch)
tree15da9dd2a375d5e0cbc3e1da97688096f7b30591 /app/lib
parente02812d5b63b4909fff9c0c7246e80745c4c703e (diff)
Fix reblogs being discarded after the reblogged status (#19731)
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/status_reach_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/status_reach_finder.rb b/app/lib/status_reach_finder.rb
index 98e502bb6..ccf1e9e3a 100644
--- a/app/lib/status_reach_finder.rb
+++ b/app/lib/status_reach_finder.rb
@@ -55,7 +55,7 @@ class StatusReachFinder
 
   # Beware: Reblogs can be created without the author having had access to the status
   def reblogs_account_ids
-    @status.reblogs.pluck(:account_id) if distributable? || unsafe?
+    @status.reblogs.rewhere(deleted_at: [nil, @status.deleted_at]).pluck(:account_id) if distributable? || unsafe?
   end
 
   # Beware: Favourites can be created without the author having had access to the status