mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
Merge pull request #1466 from chptung/patch-2
Update subscriberIdsToNotify to send unique emails
This commit is contained in:
commit
a9ece97650
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ if (typeof Package['nova:posts'] !== "undefined") {
|
|||
|
||||
if (!!subscribers && !!subscribers.length) {
|
||||
// remove userIds of users that have already been notified and of post's author
|
||||
let subscriberIdsToNotify = _.difference(subscribers, userIdsNotified, [post.userId]);
|
||||
let subscriberIdsToNotify = _.uniq(_.difference(subscribers, userIdsNotified, [post.userId]));
|
||||
|
||||
Telescope.notifications.create(subscriberIdsToNotify, 'newPost', notificationData);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue