diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-10-23 10:47:36 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2023-10-23 10:47:36 +0200 |
commit | 741d67e9ba5356003dc958956bb1ebdbff3584ca (patch) | |
tree | 64cb1f138484ce3ce759d31194876610228fa94c | |
parent | 70fd8199354c479e38e3f5be95e8706419a6650c (diff) |
Prevent delivery of new posts to suspended followersfixes/delivery-to-suspended-accounts
-rw-r--r-- | app/lib/status_reach_finder.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/lib/status_reach_finder.rb b/app/lib/status_reach_finder.rb index 36fb0e80fb8..5554dab67ea 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 |