Filter by user IDs when sending comment notifications (#14186)

This commit is contained in:
Molly Struve 2021-07-09 17:57:14 -04:00 committed by GitHub
parent c591ec811d
commit 708fc9e2a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@ module Notifications
# Send PNs using Rpush - respecting users' notificaton delivery settings
targets = User.joins(:notification_setting)
.where(notification_setting: { mobile_comment_notifications: true }).ids
.where(id: user_ids, notification_setting: { mobile_comment_notifications: true }).ids
PushNotifications::Send.call(
user_ids: targets,