stop notifying users about their own behavior

This commit is contained in:
Jonathan Baird 2020-04-08 11:54:00 -06:00
parent 7856692946
commit 4d066b1f30

View file

@ -282,7 +282,10 @@ if (Meteor.isServer) {
);
}
Notifications.getUsers(watchers).forEach(user => {
Notifications.notify(user, title, description, params);
// don't notify a user of their own behavior
if (user._id !== userId) {
Notifications.notify(user, title, description, params);
}
});
const integrations = Integrations.find({