|
|
@ -35,6 +35,8 @@ module.exports = function(User) {
|
|
|
|
settings.topicPostSort = settings.topicPostSort || meta.config.topicPostSort || 'oldest_to_newest';
|
|
|
|
settings.topicPostSort = settings.topicPostSort || meta.config.topicPostSort || 'oldest_to_newest';
|
|
|
|
settings.followTopicsOnCreate = (settings.followTopicsOnCreate === null || settings.followTopicsOnCreate === undefined) ? true : parseInt(settings.followTopicsOnCreate, 10) === 1;
|
|
|
|
settings.followTopicsOnCreate = (settings.followTopicsOnCreate === null || settings.followTopicsOnCreate === undefined) ? true : parseInt(settings.followTopicsOnCreate, 10) === 1;
|
|
|
|
settings.followTopicsOnReply = parseInt(settings.followTopicsOnReply, 10) === 1;
|
|
|
|
settings.followTopicsOnReply = parseInt(settings.followTopicsOnReply, 10) === 1;
|
|
|
|
|
|
|
|
settings.sendChatNotifications = parseInt(settings.sendChatNotifications, 10) === 1;
|
|
|
|
|
|
|
|
|
|
|
|
callback(null, settings);
|
|
|
|
callback(null, settings);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -83,7 +85,8 @@ module.exports = function(User) {
|
|
|
|
notificationSounds: data.notificationSounds,
|
|
|
|
notificationSounds: data.notificationSounds,
|
|
|
|
language: data.language || meta.config.defaultLang,
|
|
|
|
language: data.language || meta.config.defaultLang,
|
|
|
|
followTopicsOnCreate: data.followTopicsOnCreate,
|
|
|
|
followTopicsOnCreate: data.followTopicsOnCreate,
|
|
|
|
followTopicsOnReply: data.followTopicsOnReply
|
|
|
|
followTopicsOnReply: data.followTopicsOnReply,
|
|
|
|
|
|
|
|
sendChatNotifications: data.sendChatNotifications
|
|
|
|
}, callback);
|
|
|
|
}, callback);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|