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;