aboutsummaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-12-15 15:23:28 +0100
committerdefault <nobody@localhost>2024-12-15 15:23:28 +0100
commitb2d301de2d5956b17ee0e26201bca952c4269e27 (patch)
treeb39d0fa771500b63d6f5a1949b3aa737f8d7e8c5 /mastoapi.c
parentee607734d8effdfb3a1a163e59153546a6ae9506 (diff)
mastoapi: deleted useless code.
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/mastoapi.c b/mastoapi.c
index d844b42..4d0c063 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1322,7 +1322,7 @@ xs_list *mastoapi_timeline(snac *user, const xs_dict *args, const char *index_fn
const char *max_id = xs_dict_get(args, "max_id");
const char *since_id = xs_dict_get(args, "since_id");
- const char *min_id = xs_dict_get(args, "min_id");
+// const char *min_id = xs_dict_get(args, "min_id"); /* unsupported old-to-new navigation */
const char *limit_s = xs_dict_get(args, "limit");
int limit = 0;
int cnt = 0;
@@ -1351,13 +1351,6 @@ xs_list *mastoapi_timeline(snac *user, const xs_dict *args, const char *index_fn
break;
}
- /* only returns entries newer than min_id */
- /* what does really "Return results immediately newer than ID" mean? */
- if (min_id) {
- if (strcmp(md5, MID_TO_MD5(min_id)) == 0)
- break;
- }
-
/* get the entry */
if (user) {
if (!valid_status(timeline_get_by_md5(user, md5, &msg)))