commit 5b759a6
default
·
2024-10-11 02:22:08 +0000 UTC
parent 861dc82
mastoapi: fixed timeline/public (it was showing less posts that it should).
1 files changed,
+1,
-5
+1,
-5
1@@ -1667,12 +1667,8 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path,
2 else
3 if (strcmp(cmd, "/v1/timelines/public") == 0) { /** **/
4 /* the instance public timeline (public timelines for all users) */
5- snac *user = NULL;
6- if (logged_in)
7- user = &snac1;
8-
9 xs *ifn = instance_index_fn();
10- xs *out = mastoapi_timeline(user, args, ifn);
11+ xs *out = mastoapi_timeline(NULL, args, ifn);
12
13 *body = xs_json_dumps(out, 4);
14 *ctype = "application/json";