From 5f968f3f259db5110c395e9f29a59463137b30c5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 1 Nov 2017 12:44:53 +0900 Subject: [PATCH] Fix bug --- src/api/endpoints/posts/timeline.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/api/endpoints/posts/timeline.ts b/src/api/endpoints/posts/timeline.ts index 5fe820001..fe096442b 100644 --- a/src/api/endpoints/posts/timeline.ts +++ b/src/api/endpoints/posts/timeline.ts @@ -44,11 +44,13 @@ module.exports = (params, user, app) => new Promise(async (res, rej) => { $in: followingIds }, // TODO - channel_id: { - $or: [{ + $or: [{ + channel_id: { $exists: false - }, null] - } + } + }, { + channel_id: null + }] } as any; if (sinceId) { sort._id = 1;