diff options
Diffstat (limited to 'src/api/endpoints/users/posts.ts')
| -rw-r--r-- | src/api/endpoints/users/posts.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/endpoints/users/posts.ts b/src/api/endpoints/users/posts.ts index 526ed1ee1b..770831c426 100644 --- a/src/api/endpoints/users/posts.ts +++ b/src/api/endpoints/users/posts.ts @@ -51,7 +51,7 @@ module.exports = (params, me) => 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'); } |