Skip to content
Snippets Groups Projects
Commit 731e6506 authored by Kurtis Rainbolt-Greene's avatar Kurtis Rainbolt-Greene Committed by GitHub
Browse files

Use active record shorthand

parent 5f549818
No related branches found
No related tags found
No related merge requests found
......@@ -118,7 +118,7 @@ class FeedManager
def filter_from_mentions?(status, receiver)
check_for_blocks = [status.account_id]
check_for_blocks.concat(status.mentions.select('account_id').map(&:account_id))
check_for_blocks.concat(status.mentions.pluck(:account_id))
check_for_blocks.concat([status.in_reply_to_account]) if status.reply? && !status.in_reply_to_account_id.nil?
should_filter = receiver.id == status.account_id # Filter if I'm mentioning myself
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment