Node.js based forum software built for the modern web
handle 404 first
Barış Soner Uşaklı5e6d8ea566b1
diff --git a/src/controllers/posts.js b/src/controllers/posts.jsindex 4f906fb0ba..5f41d6a9d9 100644--- a/src/controllers/posts.js+++ b/src/controllers/posts.js@@ -26,12 +26,12 @@ postsController.redirectToPost = function (req, res, next) {}, next);},function (results, next) {- if (!results.canRead) {- return helpers.notAllowed(req, res);- }if (!results.path) {return next();}+ if (!results.canRead) {+ return helpers.notAllowed(req, res);+ }helpers.redirect(res, results.path);},], next);