mirror of
https://codeberg.org/grunfink/snac2.git
synced 2025-01-12 09:03:39 +00:00
mastoapi: deleted useless code.
This commit is contained in:
parent
ee607734d8
commit
b2d301de2d
1 changed files with 1 additions and 8 deletions
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue