Merge pull request 'When reading timeline in ascending order, return results in descending order' (#284) from nowster/snac2:min_id_reverse into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/284
This commit is contained in:
+4
-1
@@ -1453,7 +1453,10 @@ xs_list *mastoapi_timeline(snac *user, const xs_dict *args, const char *index_fn
|
||||
xs *st = mastoapi_status(user, msg);
|
||||
|
||||
if (st != NULL) {
|
||||
out = xs_list_append(out, st);
|
||||
if (ascending)
|
||||
out = xs_list_insert(out, 0, st);
|
||||
else
|
||||
out = xs_list_append(out, st);
|
||||
cnt++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user