mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
dont set homePageRoute to custom if field is empty
This commit is contained in:
@@ -123,7 +123,7 @@ module.exports = function(User) {
|
||||
topicSearchEnabled: data.topicSearchEnabled,
|
||||
delayImageLoading: data.delayImageLoading,
|
||||
groupTitle: data.groupTitle,
|
||||
homePageRoute: (data.homePageCustom || data.homePageRoute || '').replace(/^\//, ''),
|
||||
homePageRoute: (data.homePageCustom || (data.homePageRoute !== 'custom' ? data.homePageRoute : '') || '').replace(/^\//, ''),
|
||||
scrollToMyPost: data.scrollToMyPost
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user