about summary refs log tree commit diff
path: root/app/lib/feed_manager.rb
diff options
context:
space:
mode:
authorKurtis Rainbolt-Greene <kurtis@rainbolt-greene.online>2017-04-04 09:04:07 -0700
committerGitHub <noreply@github.com>2017-04-04 09:04:07 -0700
commit731e650681004bcb8ad11d610e017975a706f57d (patch)
tree31fffccd0e4b6006606a0efbe87a69cc166bd1da /app/lib/feed_manager.rb
parent5f54981846508daf9558f66ffd70d42d8213bea9 (diff)
Use active record shorthand
Diffstat (limited to 'app/lib/feed_manager.rb')
-rw-r--r--app/lib/feed_manager.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/feed_manager.rb b/app/lib/feed_manager.rb
index a2efcce10..9398d6c70 100644
--- a/app/lib/feed_manager.rb
+++ b/app/lib/feed_manager.rb
@@ -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