summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 3250a20..54b4333 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -1453,7 +1453,10 @@ xs_list *mastoapi_timeline(snac *user, const xs_dict *args, const char *index_fn
1453 xs *st = mastoapi_status(user, msg); 1453 xs *st = mastoapi_status(user, msg);
1454 1454
1455 if (st != NULL) { 1455 if (st != NULL) {
1456 out = xs_list_append(out, st); 1456 if (ascending)
1457 out = xs_list_insert(out, 0, st);
1458 else
1459 out = xs_list_append(out, st);
1457 cnt++; 1460 cnt++;
1458 } 1461 }
1459 1462