summaryrefslogtreecommitdiff
path: root/src/api/endpoints/posts/reposts.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/endpoints/posts/reposts.ts')
-rw-r--r--src/api/endpoints/posts/reposts.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/endpoints/posts/reposts.ts b/src/api/endpoints/posts/reposts.ts
index d8410b322b..0c1fa9bbd1 100644
--- a/src/api/endpoints/posts/reposts.ts
+++ b/src/api/endpoints/posts/reposts.ts
@@ -34,7 +34,7 @@ module.exports = (params, user) =>
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');
}