summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2017-09-29 17:11:13 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2017-09-29 17:11:13 -0300
commit196f959f1d9d5bbea7c77082219c3723e2755fe4 (patch)
tree3b8b840e90b3c67f93c7e3e28390b9b74c96010a
parenteb945f26a3be316fb2ae4452d6db45a11f8b91d4 (diff)
downloadwekan-196f959f1d9d5bbea7c77082219c3723e2755fe4.tar.gz
wekan-196f959f1d9d5bbea7c77082219c3723e2755fe4.tar.bz2
wekan-196f959f1d9d5bbea7c77082219c3723e2755fe4.zip
Add some parameters to webhook
-rw-r--r--models/activities.js1
-rw-r--r--server/notifications/outgoing.js5
2 files changed, 5 insertions, 1 deletions
diff --git a/models/activities.js b/models/activities.js
index 4ddcfa72..be290dce 100644
--- a/models/activities.js
+++ b/models/activities.js
@@ -110,6 +110,7 @@ if (Meteor.isServer) {
if (activity.commentId) {
const comment = activity.comment();
params.comment = comment.text;
+ params.commentId = comment._id;
}
if (activity.attachmentId) {
const attachment = activity.attachment();
diff --git a/server/notifications/outgoing.js b/server/notifications/outgoing.js
index 07a0a903..e6959c0e 100644
--- a/server/notifications/outgoing.js
+++ b/server/notifications/outgoing.js
@@ -29,7 +29,10 @@ Meteor.methods({
text: `${text}`,
};
- ['cardId', 'listId', 'oldListId', 'boardId'].forEach((key) => {
+ [ 'cardId', 'listId', 'oldListId',
+ 'boardId', 'comment', 'user',
+ 'card', 'commentId'
+ ].forEach((key) => {
if (params[key]) value[key] = params[key];
});
value.description = description;