Add setting to avoid showing a post after it is submitted to keep the user's place on the page to address issue #4363

This commit is contained in:
boomzillawtf
2016-03-16 17:55:58 -04:00
parent c8b179e492
commit ceb3b6ebe7
3 changed files with 6 additions and 2 deletions

View File

@@ -76,6 +76,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 = settings.bootswatchSkin || 'default';
settings.scrollToMyPost = parseInt(getSetting(settings, 'scrollToMyPost', 1), 10) ===1;
callback(null, settings);
});
@@ -120,7 +121,8 @@ module.exports = function(User) {
restrictChat: data.restrictChat,
topicSearchEnabled: data.topicSearchEnabled,
groupTitle: data.groupTitle,
homePageRoute: data.homePageCustom || data.homePageRoute
homePageRoute: data.homePageCustom || data.homePageRoute,
scrollToMyPost: data.scrollToMyPost
};
if (data.bootswatchSkin) {