From 741d67e9ba5356003dc958956bb1ebdbff3584ca Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 23 Oct 2023 10:47:36 +0200 Subject: [PATCH] Prevent delivery of new posts to suspended followers --- 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 36fb0e80fb..5554dab67e 100644 --- a/app/lib/status_reach_finder.rb +++ b/app/lib/status_reach_finder.rb @@ -22,7 +22,9 @@ class StatusReachFinder if @status.reblog? [] else - Account.where(id: reached_account_ids).inboxes + scope = Account.where(id: reached_account_ids).inboxes + scope.merge!(Account.without_suspended) unless unsafe? + scope end end