feat: #7550, show message if post is queued when js is disabled

This commit is contained in:
Barış Soner Uşaklı
2020-11-17 14:47:06 -05:00
parent 35f932cd64
commit 120999bf63
4 changed files with 23 additions and 1 deletions

View File

@@ -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;