v1.18.x
Baris Usakli 7 years ago
parent 75e2ab8957
commit bf770636c5

@ -137,14 +137,22 @@ module.exports = function (User) {
incomingChatSound: data.incomingChatSound,
outgoingChatSound: data.outgoingChatSound,
upvoteNotifFreq: data.upvoteNotifFreq,
notificationType_upvote: data.notificationType_upvote,
'notificationType_new-topic': data['notificationType_new-topic'],
'notificationType_new-reply': data['notificationType_new-reply'],
notificationType_follow: data.notificationType_follow,
'notificationType_new-chat': data['notificationType_new-chat'],
'notificationType_group-invite': data['notificationType_group-invite'],
};
var notificationTypes = [
'notificationType_upvote', 'notificationType_new-topic', 'notificationType_new-reply',
'notificationType_follow', 'notificationType_new-chat', 'notificationType_group-invite',
'notificationType_new-register', 'notificationType_post-queue', 'notificationType_new-post-flag',
'notificationType_new-user-flag',
];
notificationTypes.forEach(function (notificationType) {
if (data[notificationType]) {
settings[notificationType] = data[notificationType];
}
});
if (data.bootswatchSkin) {
settings.bootswatchSkin = data.bootswatchSkin;
}

Loading…
Cancel
Save