]> cat aescling's git repositories - mastodon.git/commitdiff
Fix wrong method used in PollExpirationNotifyWorker (#10265)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 14 Mar 2019 13:04:07 +0000 (14:04 +0100)
committerGitHub <noreply@github.com>
Thu, 14 Mar 2019 13:04:07 +0000 (14:04 +0100)
app/workers/poll_expiration_notify_worker.rb

index ae72298b808dc68921c78966e5d9a26861d58170..e08f0c2496fa7d13ec538195df5074916ae1359d 100644 (file)
@@ -15,7 +15,7 @@ class PollExpirationNotifyWorker
     end
 
     # Notify local voters
-    poll.votes.includes(:account).map(&:account).filter(&:local?).each do |account|
+    poll.votes.includes(:account).map(&:account).select(&:local?).each do |account|
       NotifyService.new.call(account, poll)
     end
   rescue ActiveRecord::RecordNotFound