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

@@ -77,7 +77,7 @@ exports.post = async function (req, res) {
throw new Error('[[error:invalid-data]]');
}
if (result.queued) {
return res.redirect((nconf.get('relative_path') || '/'));
return res.redirect((nconf.get('relative_path') || '/') + '?noScriptMessage=[[success:post-queued]]');
}
const uid = result.uid ? result.uid : result.topicData.uid;
user.updateOnlineUsers(uid);