about summary refs log tree commit diff
path: root/app/lib/feed_manager.rb
diff options
context:
space:
mode:
authorEugen <eugen@zeonfederated.com>2017-04-05 02:53:39 +0200
committerGitHub <noreply@github.com>2017-04-05 02:53:39 +0200
commit2edeb3fe1c6212380a1c053f124fbaed1c47a261 (patch)
treebbb6d79c5c38631e4c1890e3661585991eaa3f15 /app/lib/feed_manager.rb
parentfeea517046aa5ac50cf6e339a5dd7a33432f2ae6 (diff)
parent731e650681004bcb8ad11d610e017975a706f57d (diff)
Merge pull request #858 from krainboltgreene/patch-6
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 28e712704..2cca1cefe 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_id)
     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