From 4c615bd2a23c60b5b5125cf779d785fd30f03f4c Mon Sep 17 00:00:00 2001 From: fatchan Date: Sat, 13 Apr 2019 16:15:02 +0000 Subject: [PATCH] dont show thread with single post, make sure thread post is a thread --- db-models/posts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db-models/posts.js b/db-models/posts.js index 065f82d6..dfbfab98 100644 --- a/db-models/posts.js +++ b/db-models/posts.js @@ -61,7 +61,8 @@ module.exports = { const data = await Promise.all([ db.findOne({ 'postId': id, - 'board': board + 'board': board, + 'thread': null, }, { 'projection': { 'salt': 0,