Fix status_reach_finder bug

This commit is contained in:
KMY 2023-08-12 18:30:16 +09:00
parent 79062bfc2f
commit 7d99dd9030

View file

@ -27,17 +27,17 @@ class StatusReachFinder
# When the status is a reblog, there are no interactions with it # When the status is a reblog, there are no interactions with it
# directly, we assume all interactions are with the original one # 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 Account.where(id: reached_account_ids).where.not(domain: banned_domains).inboxes
end end
end end
def reached_account_inboxes_for_misskey 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 Account.where(id: reached_account_ids).where(domain: banned_domains_for_misskey).inboxes
end end
end end