From 4d066b1f3095326c6ef085ccc405bb1e19f0dd03 Mon Sep 17 00:00:00 2001 From: Jonathan Baird Date: Wed, 8 Apr 2020 11:54:00 -0600 Subject: stop notifying users about their own behavior --- models/activities.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'models') diff --git a/models/activities.js b/models/activities.js index 568859a9..b5fcb7d8 100644 --- a/models/activities.js +++ b/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({ -- cgit v1.2.3-1-g7c22