Skip to content

Commit b68e748

Browse files
Gargronhiyuki2578
authored andcommitted
Fix wrong method used in PollExpirationNotifyWorker (mastodon#10265)
1 parent 60fd674 commit b68e748

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/workers/poll_expiration_notify_worker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def perform(poll_id)
1515
end
1616

1717
# Notify local voters
18-
poll.votes.includes(:account).map(&:account).filter(&:local?).each do |account|
18+
poll.votes.includes(:account).map(&:account).select(&:local?).each do |account|
1919
NotifyService.new.call(account, poll)
2020
end
2121
rescue ActiveRecord::RecordNotFound

0 commit comments

Comments
 (0)