mirror of
https://github.com/wekan/wekan.git
synced 2026-02-19 22:48:07 +01:00
Remove pwix:blaze-layout
This commit is contained in:
parent
9ebf4d2426
commit
0635a663f0
38 changed files with 771 additions and 432 deletions
|
|
@ -202,7 +202,7 @@ if (Meteor.isServer) {
|
|||
params.comment = comment.text;
|
||||
if (board) {
|
||||
const comment = params.comment;
|
||||
const knownUsers = board.members.map(member => {
|
||||
const knownUsers = board.members.map((member) => {
|
||||
const u = ReactiveCache.getUser(member.userId);
|
||||
if (u) {
|
||||
member.username = u.username;
|
||||
|
|
@ -223,7 +223,7 @@ if (Meteor.isServer) {
|
|||
|
||||
if (activity.boardId && username === 'board_members') {
|
||||
// mentions all board members
|
||||
const knownUids = knownUsers.map(u => u.userId);
|
||||
const knownUids = knownUsers.map((u) => u.userId);
|
||||
watchers = _.union(watchers, [...knownUids]);
|
||||
title = 'act-atUserComment';
|
||||
} else if (activity.cardId && username === 'card_members') {
|
||||
|
|
@ -243,7 +243,6 @@ if (Meteor.isServer) {
|
|||
title = 'act-atUserComment';
|
||||
watchers = _.union(watchers, [uid]);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
params.commentId = comment._id;
|
||||
|
|
@ -300,7 +299,7 @@ if (Meteor.isServer) {
|
|||
// due time reminder, if it doesn't have old value, it's a brand new set, need some differentiation
|
||||
title = activity.timeOldValue ? 'act-withDue' : 'act-newDue';
|
||||
}
|
||||
['timeValue', 'timeOldValue'].forEach(key => {
|
||||
['timeValue', 'timeOldValue'].forEach((key) => {
|
||||
// copy time related keys & values to params
|
||||
const value = activity[key];
|
||||
if (value) params[key] = value;
|
||||
|
|
@ -313,7 +312,7 @@ if (Meteor.isServer) {
|
|||
if (new RegExp(BIGEVENTS).exec(atype)) {
|
||||
watchers = _.union(
|
||||
watchers,
|
||||
board.activeMembers().map(member => member.userId),
|
||||
board.activeMembers().map((member) => member.userId),
|
||||
); // notify all active members for important events
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
@ -335,7 +334,7 @@ if (Meteor.isServer) {
|
|||
_.intersection(participants, trackingUsers),
|
||||
);
|
||||
}
|
||||
Notifications.getUsers(watchers).forEach(user => {
|
||||
Notifications.getUsers(watchers).forEach((user) => {
|
||||
// don't notify a user of their own behavior
|
||||
if (user._id !== userId) {
|
||||
Notifications.notify(user, title, description, params);
|
||||
|
|
@ -350,7 +349,7 @@ if (Meteor.isServer) {
|
|||
});
|
||||
if (integrations.length > 0) {
|
||||
params.watchers = watchers;
|
||||
integrations.forEach(integration => {
|
||||
integrations.forEach((integration) => {
|
||||
Meteor.call(
|
||||
'outgoingWebhooks',
|
||||
integration,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue