Skip to content

Commit

Permalink
Don't delivery a reply to domains which are blocked by author (mastod…
Browse files Browse the repository at this point in the history
…on#22117)

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
  • Loading branch information
2 people authored and Nonexistent committed Jan 11, 2023
1 parent ea7c124 commit 75574ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/status_reach_finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def replies_account_ids

def followers_inboxes
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?
[]
else
Expand Down

0 comments on commit 75574ad

Please sign in to comment.