diff options
Diffstat (limited to 'mastoapi.c')
| -rw-r--r-- | mastoapi.c | 5 |
1 files changed, 4 insertions, 1 deletions
| @@ -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 | ||