From 7d99dd9030e3a4ba7bc3883af7b3c0d84376acad Mon Sep 17 00:00:00 2001 From: KMY Date: Sat, 12 Aug 2023 18:30:16 +0900 Subject: [PATCH] Fix status_reach_finder bug --- app/lib/status_reach_finder.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/lib/status_reach_finder.rb b/app/lib/status_reach_finder.rb index 6117949f9f..7f954c0209 100644 --- a/app/lib/status_reach_finder.rb +++ b/app/lib/status_reach_finder.rb @@ -27,17 +27,17 @@ class StatusReachFinder # When the status is a reblog, there are no interactions with it # directly, we assume all interactions are with the original one - if @status.reblog? + if @status.reblog? || @status.limited_visibility? [] - elsif !@status.limited_visibility? + else Account.where(id: reached_account_ids).where.not(domain: banned_domains).inboxes end end def reached_account_inboxes_for_misskey - if @status.reblog? + if @status.reblog? || @status.limited_visibility? [] - elsif !@status.limited_visibility? + else Account.where(id: reached_account_ids).where(domain: banned_domains_for_misskey).inboxes end end