Thanks to Akuket !

Closes #1304
This commit is contained in:
Lauri Ojansivu 2018-10-14 00:09:41 +03:00
parent a90f648d5e
commit e9f8e150e7
6 changed files with 3 additions and 60 deletions

View file

@ -143,18 +143,6 @@ if (Meteor.isServer) {
}
if (board) {
const watchingUsers = _.pluck(_.where(board.watchers, {level: 'watching'}), 'userId');
const trackingUsers = _.pluck(_.where(board.watchers, {level: 'tracking'}), 'userId');
const mutedUsers = _.pluck(_.where(board.watchers, {level: 'muted'}), 'userId');
switch(board.getWatchDefault()) {
case 'muted':
participants = _.intersection(participants, trackingUsers);
watchers = _.intersection(watchers, trackingUsers);
break;
case 'tracking':
participants = _.difference(participants, mutedUsers);
watchers = _.difference(watchers, mutedUsers);
break;
}
watchers = _.union(watchers, watchingUsers || []);
}

View file

@ -116,6 +116,7 @@ if (Meteor.isServer) {
url: FlowRouter.url('sign-up'),
};
const lang = author.getLanguage();
Email.send({
to: icode.email,
from: Accounts.emailTemplates.from,

View file

@ -89,10 +89,6 @@ Users.attachSchema(new SimpleSchema({
type: [String],
optional: true,
},
'profile.tags': {
type: [String],
optional: true,
},
'profile.icode': {
type: String,
optional: true,