From 04ba2818cb3c6e0054d9f97c1ae5efaae6c8d1b5 Mon Sep 17 00:00:00 2001 From: default Date: Sun, 23 Apr 2023 14:50:54 +0200 Subject: [PATCH] Fixed a bug in the instance timeline. --- mastoapi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mastoapi.c b/mastoapi.c index 7376e5e..e52f86b 100644 --- a/mastoapi.c +++ b/mastoapi.c @@ -913,7 +913,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, if (strcmp(cmd, "/v1/timelines/public") == 0) { /* the public timeline (public timelines for all users) */ - /* this is a kludge: first users in the list get all the fame */ + /* this is an ugly kludge: first users in the list get all the fame */ const char *limit_s = xs_dict_get(args, "limit"); int limit = 0; @@ -934,7 +934,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, snac user; if (user_open(&user, uid)) { - xs *timeline = timeline_simple_list(&snac1, "public", 0, 4); + xs *timeline = timeline_simple_list(&user, "public", 0, 4); xs_list *p2 = timeline; xs_str *v; @@ -954,7 +954,7 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, continue; /* convert the Note into a Mastodon status */ - xs *st = mastoapi_status(&snac1, msg); + xs *st = mastoapi_status(&user, msg); if (st != NULL) { out = xs_list_append(out, st);