stop notifying users about their own behavior

reviewable/pr2998/r1
Jonathan Baird 5 years ago
parent 7856692946
commit 4d066b1f30
  1. 5
      models/activities.js

@ -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({

Loading…
Cancel
Save