mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 18:13:42 +01:00
Check reblogged status for blocked/muted mentions (#7957)
This commit is contained in:
parent
1f6ed4f86a
commit
4b198b172d
1 changed files with 5 additions and 1 deletions
|
@ -157,7 +157,11 @@ class FeedManager
|
|||
|
||||
check_for_blocks = status.mentions.pluck(:account_id)
|
||||
check_for_blocks.concat([status.account_id])
|
||||
check_for_blocks.concat([status.reblog.account_id]) if status.reblog?
|
||||
|
||||
if status.reblog?
|
||||
check_for_blocks.concat([status.reblog.account_id])
|
||||
check_for_blocks.concat(status.reblog.mentions.pluck(:account_id))
|
||||
end
|
||||
|
||||
return true if blocks_or_mutes?(receiver_id, check_for_blocks, :home)
|
||||
|
||||
|
|
Loading…
Reference in a new issue