From cc48f25e98b2b60f4a4323791d95209b26f90539 Mon Sep 17 00:00:00 2001 From: default Date: Sun, 16 Apr 2023 07:17:16 +0200 Subject: [PATCH] Return context ancestors in the right order. --- mastoapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastoapi.c b/mastoapi.c index 9495469..fd0924f 100644 --- a/mastoapi.c +++ b/mastoapi.c @@ -1071,7 +1071,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, if (valid_status(timeline_get_by_md5(&snac1, pid, &m2))) { xs *st = mastoapi_status(&snac1, m2); - anc = xs_list_append(anc, st); + anc = xs_list_insert(anc, 0, st); } else break;