diff options
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 9 |
1 files changed, 1 insertions, 8 deletions
| @@ -1322,7 +1322,7 @@ xs_list *mastoapi_timeline(snac *user, const xs_dict *args, const char *index_fn | |||
| 1322 | 1322 | ||
| 1323 | const char *max_id = xs_dict_get(args, "max_id"); | 1323 | const char *max_id = xs_dict_get(args, "max_id"); |
| 1324 | const char *since_id = xs_dict_get(args, "since_id"); | 1324 | const char *since_id = xs_dict_get(args, "since_id"); |
| 1325 | const char *min_id = xs_dict_get(args, "min_id"); | 1325 | // const char *min_id = xs_dict_get(args, "min_id"); /* unsupported old-to-new navigation */ |
| 1326 | const char *limit_s = xs_dict_get(args, "limit"); | 1326 | const char *limit_s = xs_dict_get(args, "limit"); |
| 1327 | int limit = 0; | 1327 | int limit = 0; |
| 1328 | int cnt = 0; | 1328 | int cnt = 0; |
| @@ -1351,13 +1351,6 @@ xs_list *mastoapi_timeline(snac *user, const xs_dict *args, const char *index_fn | |||
| 1351 | break; | 1351 | break; |
| 1352 | } | 1352 | } |
| 1353 | 1353 | ||
| 1354 | /* only returns entries newer than min_id */ | ||
| 1355 | /* what does really "Return results immediately newer than ID" mean? */ | ||
| 1356 | if (min_id) { | ||
| 1357 | if (strcmp(md5, MID_TO_MD5(min_id)) == 0) | ||
| 1358 | break; | ||
| 1359 | } | ||
| 1360 | |||
| 1361 | /* get the entry */ | 1354 | /* get the entry */ |
| 1362 | if (user) { | 1355 | if (user) { |
| 1363 | if (!valid_status(timeline_get_by_md5(user, md5, &msg))) | 1356 | if (!valid_status(timeline_get_by_md5(user, md5, &msg))) |