|
|
@ -74,8 +74,7 @@ module.exports = function (User) {
|
|
|
|
settings.categoryTopicSort = getSetting(settings, 'categoryTopicSort', 'newest_to_oldest');
|
|
|
|
settings.categoryTopicSort = getSetting(settings, 'categoryTopicSort', 'newest_to_oldest');
|
|
|
|
settings.followTopicsOnCreate = parseInt(getSetting(settings, 'followTopicsOnCreate', 1), 10) === 1;
|
|
|
|
settings.followTopicsOnCreate = parseInt(getSetting(settings, 'followTopicsOnCreate', 1), 10) === 1;
|
|
|
|
settings.followTopicsOnReply = parseInt(getSetting(settings, 'followTopicsOnReply', 0), 10) === 1;
|
|
|
|
settings.followTopicsOnReply = parseInt(getSetting(settings, 'followTopicsOnReply', 0), 10) === 1;
|
|
|
|
settings.sendChatNotifications = parseInt(getSetting(settings, 'sendChatNotifications', 0), 10) === 1;
|
|
|
|
settings.upvoteNotifFreq = getSetting(settings, 'upvoteNotifFreq', 'all');
|
|
|
|
settings.sendPostNotifications = parseInt(getSetting(settings, 'sendPostNotifications', 0), 10) === 1;
|
|
|
|
|
|
|
|
settings.restrictChat = parseInt(getSetting(settings, 'restrictChat', 0), 10) === 1;
|
|
|
|
settings.restrictChat = parseInt(getSetting(settings, 'restrictChat', 0), 10) === 1;
|
|
|
|
settings.topicSearchEnabled = parseInt(getSetting(settings, 'topicSearchEnabled', 0), 10) === 1;
|
|
|
|
settings.topicSearchEnabled = parseInt(getSetting(settings, 'topicSearchEnabled', 0), 10) === 1;
|
|
|
|
settings.delayImageLoading = parseInt(getSetting(settings, 'delayImageLoading', 1), 10) === 1;
|
|
|
|
settings.delayImageLoading = parseInt(getSetting(settings, 'delayImageLoading', 1), 10) === 1;
|
|
|
@ -131,6 +130,7 @@ module.exports = function (User) {
|
|
|
|
notificationSound: data.notificationSound,
|
|
|
|
notificationSound: data.notificationSound,
|
|
|
|
incomingChatSound: data.incomingChatSound,
|
|
|
|
incomingChatSound: data.incomingChatSound,
|
|
|
|
outgoingChatSound: data.outgoingChatSound,
|
|
|
|
outgoingChatSound: data.outgoingChatSound,
|
|
|
|
|
|
|
|
upvoteNotifFreq: data.upvoteNotifFreq,
|
|
|
|
notificationType_upvote: data.notificationType_upvote,
|
|
|
|
notificationType_upvote: data.notificationType_upvote,
|
|
|
|
'notificationType_new-topic': data['notificationType_new-topic'],
|
|
|
|
'notificationType_new-topic': data['notificationType_new-topic'],
|
|
|
|
'notificationType_new-reply': data['notificationType_new-reply'],
|
|
|
|
'notificationType_new-reply': data['notificationType_new-reply'],
|
|
|
|