diff options
author | guillaume <guillaume.cassou@supinfo.com> | 2018-10-11 16:44:52 +0200 |
---|---|---|
committer | guillaume <guillaume.cassou@supinfo.com> | 2018-10-11 16:44:52 +0200 |
commit | b925b8e74d8cb55edcb570819cffcb9f0dc061fc (patch) | |
tree | 5fa828a5aafc09b5a652999fa0540703fb355b31 /server/notifications | |
parent | 28a01862d04654784bd6010035c3a6fe1690ba60 (diff) | |
download | wekan-b925b8e74d8cb55edcb570819cffcb9f0dc061fc.tar.gz wekan-b925b8e74d8cb55edcb570819cffcb9f0dc061fc.tar.bz2 wekan-b925b8e74d8cb55edcb570819cffcb9f0dc061fc.zip |
improve notifications
Diffstat (limited to 'server/notifications')
-rw-r--r-- | server/notifications/email.js | 1 | ||||
-rw-r--r-- | server/notifications/notifications.js | 8 |
2 files changed, 3 insertions, 6 deletions
diff --git a/server/notifications/email.js b/server/notifications/email.js index b2b7fab8..fc05456f 100644 --- a/server/notifications/email.js +++ b/server/notifications/email.js @@ -2,6 +2,7 @@ Meteor.startup(() => { Notifications.subscribe('email', (user, title, description, params) => { // add quote to make titles easier to read in email text + console.log('ICI', user, title, description, params); const quoteParams = _.clone(params); ['card', 'list', 'oldList', 'board', 'comment'].forEach((key) => { if (quoteParams[key]) quoteParams[key] = `"${params[key]}"`; diff --git a/server/notifications/notifications.js b/server/notifications/notifications.js index bc5557e1..72692ef8 100644 --- a/server/notifications/notifications.js +++ b/server/notifications/notifications.js @@ -25,16 +25,12 @@ Notifications = { participants.forEach((userId) => { if (userMap[userId]) return; const user = Users.findOne(userId); - if (user && user.hasTag('notify-participate')) { - userMap[userId] = user; - } + userMap[userId] = user; }); watchers.forEach((userId) => { if (userMap[userId]) return; const user = Users.findOne(userId); - if (user && user.hasTag('notify-watch')) { - userMap[userId] = user; - } + userMap[userId] = user; }); return _.map(userMap, (v) => v); }, |