commit b2d301d

default  ·  2024-12-15 14:23:28 +0000 UTC
parent ee60773
mastoapi: deleted useless code.
1 files changed,  +1, -8
+1, -8
 1@@ -1322,7 +1322,7 @@ xs_list *mastoapi_timeline(snac *user, const xs_dict *args, const char *index_fn
 2 
 3     const char *max_id   = xs_dict_get(args, "max_id");
 4     const char *since_id = xs_dict_get(args, "since_id");
 5-    const char *min_id   = xs_dict_get(args, "min_id");
 6+//    const char *min_id   = xs_dict_get(args, "min_id"); /* unsupported old-to-new navigation */
 7     const char *limit_s  = xs_dict_get(args, "limit");
 8     int limit = 0;
 9     int cnt   = 0;
10@@ -1351,13 +1351,6 @@ xs_list *mastoapi_timeline(snac *user, const xs_dict *args, const char *index_fn
11                     break;
12             }
13 
14-            /* only returns entries newer than min_id */
15-            /* what does really "Return results immediately newer than ID" mean? */
16-            if (min_id) {
17-                if (strcmp(md5, MID_TO_MD5(min_id)) == 0)
18-                    break;
19-            }
20-
21             /* get the entry */
22             if (user) {
23                 if (!valid_status(timeline_get_by_md5(user, md5, &msg)))