|
|
|
@ -59,7 +59,7 @@ module.exports = function (User) {
|
|
|
|
|
settings.restrictChat = parseInt(getSetting(settings, 'restrictChat', 0), 10) === 1;
|
|
|
|
|
settings.topicSearchEnabled = parseInt(getSetting(settings, 'topicSearchEnabled', 0), 10) === 1;
|
|
|
|
|
settings.bootswatchSkin = validator.escape(String(settings.bootswatchSkin || ''));
|
|
|
|
|
settings.homePageRoute = validator.escape(String(settings.homePageRoute || '')).replace('/', '/');
|
|
|
|
|
settings.homePageRoute = validator.escape(String(settings.homePageRoute || '')).replace(///g, '/');
|
|
|
|
|
settings.scrollToMyPost = parseInt(getSetting(settings, 'scrollToMyPost', 1), 10) === 1;
|
|
|
|
|
settings.categoryWatchState = getSetting(settings, 'categoryWatchState', 'notwatching');
|
|
|
|
|
|
|
|
|
|