Use active record shorthand

remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
Kurtis Rainbolt-Greene 2017-04-04 09:04:07 -07:00 committed by GitHub
parent 5f54981846
commit 731e650681
1 changed files with 1 additions and 1 deletions

View File

@ -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