diff options
author | poesty <poesty7450@gmail.com> | 2023-06-10 14:35:16 +0800 |
---|---|---|
committer | poesty <poesty7450@gmail.com> | 2023-06-10 14:35:16 +0800 |
commit | 2b64892e8399be3376fecd798de3cb8a5360924c (patch) | |
tree | ed44c98fbe8291f5d0c4b3fd7639c6496e22a986 /mastoapi.c | |
parent | 56c44eb455b94fb7229d04cec1d3229b3808d3d8 (diff) |
Use MID_TO_MD5 for ID comparison
Diffstat (limited to 'mastoapi.c')
-rw-r--r-- | mastoapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 + 10) == 0) + if (strcmp(v, MID_TO_MD5(max_id)) == 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 + 10) == 0) + if (strcmp(v, MID_TO_MD5(since_id)) == 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 + 10) == 0) + if (strcmp(v, MID_TO_MD5(min_id)) == 0) break; } |