mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Use MID_TO_MD5 for ID comparison
This commit is contained in:
parent
56c44eb455
commit
2b64892e83
1 changed files with 3 additions and 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 */
|
/* only return entries older that max_id */
|
||||||
if (max_id) {
|
if (max_id) {
|
||||||
if (strcmp(v, max_id + 10) == 0)
|
if (strcmp(v, MID_TO_MD5(max_id)) == 0)
|
||||||
max_id = NULL;
|
max_id = NULL;
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
|
@ -1180,14 +1180,14 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
|
||||||
|
|
||||||
/* only returns entries newer than since_id */
|
/* only returns entries newer than since_id */
|
||||||
if (since_id) {
|
if (since_id) {
|
||||||
if (strcmp(v, since_id + 10) == 0)
|
if (strcmp(v, MID_TO_MD5(since_id)) == 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* only returns entries newer than min_id */
|
/* only returns entries newer than min_id */
|
||||||
/* what does really "Return results immediately newer than ID" mean? */
|
/* what does really "Return results immediately newer than ID" mean? */
|
||||||
if (min_id) {
|
if (min_id) {
|
||||||
if (strcmp(v, min_id + 10) == 0)
|
if (strcmp(v, MID_TO_MD5(min_id)) == 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue