summaryrefslogtreecommitdiff
path: root/src/api/endpoints/posts/timeline.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-03-03 20:11:31 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-03-03 20:11:31 +0900
commit66eed481ea38200b005fb057be299a18f294a622 (patch)
tree850c55a9ce5070004288ae858f7c744d8f3d0b4d /src/api/endpoints/posts/timeline.ts
parentFix bug (diff)
downloadsharkey-66eed481ea38200b005fb057be299a18f294a622.tar.gz
sharkey-66eed481ea38200b005fb057be299a18f294a622.tar.bz2
sharkey-66eed481ea38200b005fb057be299a18f294a622.zip
[API] Fix bug
Diffstat (limited to 'src/api/endpoints/posts/timeline.ts')
-rw-r--r--src/api/endpoints/posts/timeline.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/endpoints/posts/timeline.ts b/src/api/endpoints/posts/timeline.ts
index 5744084932..c599c4ded7 100644
--- a/src/api/endpoints/posts/timeline.ts
+++ b/src/api/endpoints/posts/timeline.ts
@@ -32,7 +32,7 @@ module.exports = (params, user, app) =>
if (maxIdErr) return rej('invalid max_id param');
// Check if both of since_id and max_id is specified
- if (sinceId !== null && maxId !== null) {
+ if (sinceId && maxId) {
return rej('cannot set since_id and max_id');
}