diff options
| author | default <nobody@localhost> | 2024-10-11 04:22:08 +0200 |
|---|---|---|
| committer | default <nobody@localhost> | 2024-10-11 04:22:08 +0200 |
| commit | 5b759a6bc52126f97eb6941dd6ab3deb30f3f8fd (patch) | |
| tree | 65205509f5879d5e3d326eb6db7af5acfcec4dec | |
| parent | 861dc8265fd4f7334a82b8003e80e85af6fe194f (diff) | |
mastoapi: fixed timeline/public (it was showing less posts that it should).
| -rw-r--r-- | mastoapi.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -1667,12 +1667,8 @@ int mastoapi_get_handler(const xs_dict *req, const char *q_path, else if (strcmp(cmd, "/v1/timelines/public") == 0) { /** **/ /* the instance public timeline (public timelines for all users) */ - snac *user = NULL; - if (logged_in) - user = &snac1; - xs *ifn = instance_index_fn(); - xs *out = mastoapi_timeline(user, args, ifn); + xs *out = mastoapi_timeline(NULL, args, ifn); *body = xs_json_dumps(out, 4); *ctype = "application/json"; |