From 04ce5939ae1d865b24e1ea8512c33bbb06889409 Mon Sep 17 00:00:00 2001 From: Claire Date: Fri, 22 Nov 2024 15:36:08 +0100 Subject: [PATCH] Prevent delivery of new posts to suspended followers (#27509) --- app/lib/status_reach_finder.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/lib/status_reach_finder.rb b/app/lib/status_reach_finder.rb index 17e42e3ec3..d08c077c74 100644 --- a/app/lib/status_reach_finder.rb +++ b/app/lib/status_reach_finder.rb @@ -16,7 +16,9 @@ class StatusReachFinder private def reached_account_inboxes - Account.where(id: reached_account_ids).inboxes + scope = Account.where(id: reached_account_ids) + scope.merge!(Account.without_suspended) unless unsafe? + scope.inboxes end def reached_account_ids