summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpoesty <poesty7450@gmail.com>2023-06-10 02:39:11 +0800
committerpoesty <poesty7450@gmail.com>2023-06-10 02:39:11 +0800
commit86198549e77cfb6a862d9f96b4f035bd6d73c773 (patch)
tree92647d5dcc9b0a75748ebdebbd32f9bba1102455
parentab470e9f9b37c0164b9fe9437bdef8b80bbb4c27 (diff)
Ignore timestamps in mastoapi_id when filtering entries
-rw-r--r--mastoapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mastoapi.c b/mastoapi.c
index a76a6ab..4b25c53 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1172,7 +1172,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
/* only return entries older that max_id */
if (max_id) {
- if (strcmp(v, max_id) == 0)
+ if (strcmp(v, max_id + 10) == 0)
max_id = NULL;
continue;
@@ -1180,14 +1180,14 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
/* only returns entries newer than since_id */
if (since_id) {
- if (strcmp(v, since_id) == 0)
+ if (strcmp(v, since_id + 10) == 0)
break;
}
/* only returns entries newer than min_id */
/* what does really "Return results immediately newer than ID" mean? */
if (min_id) {
- if (strcmp(v, min_id) == 0)
+ if (strcmp(v, min_id + 10) == 0)
break;
}