mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #9466, don't call leaveRoom in maintenance mode
This commit is contained in:
@@ -231,7 +231,7 @@ app.cacheBuster = null;
|
|||||||
};
|
};
|
||||||
|
|
||||||
app.leaveCurrentRoom = function () {
|
app.leaveCurrentRoom = function () {
|
||||||
if (!socket) {
|
if (!socket || config.maintenanceMode) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var previousRoom = app.currentRoom;
|
var previousRoom = app.currentRoom;
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ apiController.loadConfig = async function (req) {
|
|||||||
browserTitle: validator.escape(String(meta.config.browserTitle || meta.config.title || 'NodeBB')),
|
browserTitle: validator.escape(String(meta.config.browserTitle || meta.config.title || 'NodeBB')),
|
||||||
titleLayout: (meta.config.titleLayout || '{pageTitle} | {browserTitle}').replace(/{/g, '{').replace(/}/g, '}'),
|
titleLayout: (meta.config.titleLayout || '{pageTitle} | {browserTitle}').replace(/{/g, '{').replace(/}/g, '}'),
|
||||||
showSiteTitle: meta.config.showSiteTitle === 1,
|
showSiteTitle: meta.config.showSiteTitle === 1,
|
||||||
|
maintenanceMode: meta.config.maintenanceMode === 1,
|
||||||
minimumTitleLength: meta.config.minimumTitleLength,
|
minimumTitleLength: meta.config.minimumTitleLength,
|
||||||
maximumTitleLength: meta.config.maximumTitleLength,
|
maximumTitleLength: meta.config.maximumTitleLength,
|
||||||
minimumPostLength: meta.config.minimumPostLength,
|
minimumPostLength: meta.config.minimumPostLength,
|
||||||
|
|||||||
Reference in New Issue
Block a user