Skip to content

Node.js based forum software built for the modern web

closes #1366

barisusaklid61e632c599f
diff --git a/src/posts.js b/src/posts.js
index 24a81a7e39..08603611ea 100644
--- a/src/posts.js
+++ b/src/posts.js
@@ -347,7 +347,7 @@ var db = require('./database'),
}
posts = posts.filter(function(p) {
- return !!p || parseInt(p.deleted, 10) !== 1;
+ return !!p && parseInt(p.deleted, 10) !== 1;
});
async.map(posts, getPostSummary, function(err, posts) {