snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit cc48f25e98b2b60f4a4323791d95209b26f90539
parent 604c1f0bce1ecbdadf2074b634413413f339ecac
Author: default <nobody@localhost>
Date:   Sun, 16 Apr 2023 07:17:16 +0200

Return context ancestors in the right order.

Diffstat:
Mmastoapi.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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;