mirror of
https://github.com/wekan/wekan.git
synced 2025-12-21 18:00:12 +01:00
Add some IDs to webhook body
This commit is contained in:
parent
1e7e9d2715
commit
a96ece2c11
2 changed files with 10 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue