mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
Merge branch 'devel' of github.com:wekan/wekan into devel
This commit is contained in:
commit
0ad7f080b7
1 changed files with 15 additions and 9 deletions
|
|
@ -113,10 +113,12 @@ if (Meteor.isServer) {
|
|||
}
|
||||
if (activity.oldBoardId) {
|
||||
const oldBoard = activity.oldBoard();
|
||||
if (oldBoard) {
|
||||
watchers = _.union(watchers, oldBoard.watchers || []);
|
||||
params.oldBoard = oldBoard.title;
|
||||
params.oldBoardId = activity.oldBoardId;
|
||||
}
|
||||
}
|
||||
if (activity.memberId) {
|
||||
participants = _.union(participants, [activity.memberId]);
|
||||
params.member = activity.member().getName();
|
||||
|
|
@ -129,16 +131,20 @@ if (Meteor.isServer) {
|
|||
}
|
||||
if (activity.oldListId) {
|
||||
const oldList = activity.oldList();
|
||||
if (oldList) {
|
||||
watchers = _.union(watchers, oldList.watchers || []);
|
||||
params.oldList = oldList.title;
|
||||
params.oldListId = activity.oldListId;
|
||||
}
|
||||
}
|
||||
if (activity.oldSwimlaneId) {
|
||||
const oldSwimlane = activity.oldSwimlane();
|
||||
if (oldSwimlane) {
|
||||
watchers = _.union(watchers, oldSwimlane.watchers || []);
|
||||
params.oldSwimlane = oldSwimlane.title;
|
||||
params.oldSwimlaneId = activity.oldSwimlaneId;
|
||||
}
|
||||
}
|
||||
if (activity.cardId) {
|
||||
const card = activity.card();
|
||||
participants = _.union(participants, [card.userId], card.members || []);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue