mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-06 08:07:49 +02:00
if post is not found go to 404
This commit is contained in:
@@ -12,7 +12,7 @@ postsController.redirectToPost = function(req, res, callback) {
|
||||
}
|
||||
|
||||
posts.generatePostPath(pid, req.uid, function(err, path) {
|
||||
if (err) {
|
||||
if (err || !path) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user