mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 05:27:14 -04:00
stop notifying users about their own behavior
This commit is contained in:
parent
7856692946
commit
4d066b1f30
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue