Don't delivery a reply to domains which are blocked by author (#22117) (#23490)

Co-authored-by: Jeong Arm <kjwonmail@gmail.com>
This commit is contained in:
Claire 2023-02-09 21:01:53 +01:00 committed by GitHub
parent 6a2b48190c
commit 533bf92d21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,7 @@ class StatusReachFinder
def followers_inboxes def followers_inboxes
if @status.in_reply_to_local_account? && distributable? if @status.in_reply_to_local_account? && distributable?
@status.account.followers.or(@status.thread.account.followers).inboxes @status.account.followers.or(@status.thread.account.followers.not_domain_blocked_by_account(@status.account)).inboxes
elsif @status.direct_visibility? || @status.limited_visibility? elsif @status.direct_visibility? || @status.limited_visibility?
[] []
else else