From a96ece2c1158ec6ad743266fe6bd057da6e7a5bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Manelli?= Date: Tue, 15 Aug 2017 11:08:16 -0300 Subject: Add some IDs to webhook body --- models/activities.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'models/activities.js') diff --git a/models/activities.js b/models/activities.js index b7fbc61b..208dd629 100644 --- a/models/activities.js +++ b/models/activities.js @@ -73,12 +73,14 @@ if (Meteor.isServer) { // No need send notification to user of activity // participants = _.union(participants, [activity.userId]); params.user = activity.user().getName(); + params.userId = activity.userId; } if (activity.boardId) { board = activity.board(); params.board = board.title; title = 'act-withBoardTitle'; params.url = board.absoluteUrl(); + params.boardId = activity.boardId; } if (activity.memberId) { participants = _.union(participants, [activity.memberId]); @@ -88,11 +90,13 @@ if (Meteor.isServer) { const list = activity.list(); watchers = _.union(watchers, list.watchers || []); params.list = list.title; + params.listId = activity.listId; } if (activity.oldListId) { const oldList = activity.oldList(); watchers = _.union(watchers, oldList.watchers || []); params.oldList = oldList.title; + params.oldListId = activity.oldListId; } if (activity.cardId) { const card = activity.card(); @@ -101,6 +105,7 @@ if (Meteor.isServer) { params.card = card.title; title = 'act-withCardTitle'; params.url = card.absoluteUrl(); + params.cardId = activity.cardId; } if (activity.commentId) { const comment = activity.comment(); -- cgit v1.2.3-1-g7c22