summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorSam X. Chen <sam.xi.chen@gmail.com>2019-08-30 10:36:17 -0400
committerSam X. Chen <sam.xi.chen@gmail.com>2019-08-30 10:36:17 -0400
commit510407467c5245f13fb9508b6e95f6b490dcd36b (patch)
treedabc4133dc5fcfee508d9d540f4a7cfc5bd9d351 /server
parentb477fc1b1c45e36460f061e0bdcc357188eea372 (diff)
downloadwekan-510407467c5245f13fb9508b6e95f6b490dcd36b.tar.gz
wekan-510407467c5245f13fb9508b6e95f6b490dcd36b.tar.bz2
wekan-510407467c5245f13fb9508b6e95f6b490dcd36b.zip
Add Feature: enable two-way webhooks - add comments need userid
Diffstat (limited to 'server')
-rw-r--r--server/notifications/outgoing.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/server/notifications/outgoing.js b/server/notifications/outgoing.js
index 6fe90d93..1dc3d805 100644
--- a/server/notifications/outgoing.js
+++ b/server/notifications/outgoing.js
@@ -55,11 +55,15 @@ Meteor.methods({
},
});
} else {
- CardComments.insert({
- text: newComment,
- cardId,
- boardId,
- });
+ const userId = data.userId;
+ if (userId) {
+ CardComments.insert({
+ text: newComment,
+ userId,
+ cardId,
+ boardId,
+ });
+ }
}
}
},