mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
feat: #7550, show message if post is queued when js is disabled
This commit is contained in:
@@ -157,6 +157,9 @@ middleware.renderHeader = async function renderHeader(req, res, data) {
|
||||
templateValues.defaultLang = meta.config.defaultLang || 'en-GB';
|
||||
templateValues.userLang = res.locals.config.userLang;
|
||||
templateValues.languageDirection = results.languageDirection;
|
||||
if (req.query.noScriptMessage) {
|
||||
templateValues.noScriptMessage = validator.escape(String(req.query.noScriptMessage));
|
||||
}
|
||||
|
||||
templateValues.template = { name: res.locals.template };
|
||||
templateValues.template[res.locals.template] = true;
|
||||
|
||||
Reference in New Issue
Block a user