summaryrefslogtreecommitdiff
path: root/src/api/endpoints/posts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-11-01 12:44:53 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-11-01 12:44:53 +0900
commit5f968f3f259db5110c395e9f29a59463137b30c5 (patch)
tree71617c19e880fd666efe037093c962bcbadc890f /src/api/endpoints/posts
parent:v: (diff)
downloadsharkey-5f968f3f259db5110c395e9f29a59463137b30c5.tar.gz
sharkey-5f968f3f259db5110c395e9f29a59463137b30c5.tar.bz2
sharkey-5f968f3f259db5110c395e9f29a59463137b30c5.zip
Fix bug
Diffstat (limited to 'src/api/endpoints/posts')
-rw-r--r--src/api/endpoints/posts/timeline.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/api/endpoints/posts/timeline.ts b/src/api/endpoints/posts/timeline.ts
index 5fe8200010..fe096442b4 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;