diff options
| author | 2024-10-11 04:22:08 +0200 | |
|---|---|---|
| committer | 2024-10-11 04:22:08 +0200 | |
| commit | 5b759a6bc52126f97eb6941dd6ab3deb30f3f8fd (patch) | |
| tree | 65205509f5879d5e3d326eb6db7af5acfcec4dec /mastoapi.c | |
| parent | Version 2.60 RELEASED. (diff) | |
| download | snac2-5b759a6bc52126f97eb6941dd6ab3deb30f3f8fd.tar.gz snac2-5b759a6bc52126f97eb6941dd6ab3deb30f3f8fd.tar.xz snac2-5b759a6bc52126f97eb6941dd6ab3deb30f3f8fd.zip | |
mastoapi: fixed timeline/public (it was showing less posts that it should).
Diffstat (limited to 'mastoapi.c')
| -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, | |||
| 1667 | else | 1667 | else |
| 1668 | if (strcmp(cmd, "/v1/timelines/public") == 0) { /** **/ | 1668 | if (strcmp(cmd, "/v1/timelines/public") == 0) { /** **/ |
| 1669 | /* the instance public timeline (public timelines for all users) */ | 1669 | /* the instance public timeline (public timelines for all users) */ |
| 1670 | snac *user = NULL; | ||
| 1671 | if (logged_in) | ||
| 1672 | user = &snac1; | ||
| 1673 | |||
| 1674 | xs *ifn = instance_index_fn(); | 1670 | xs *ifn = instance_index_fn(); |
| 1675 | xs *out = mastoapi_timeline(user, args, ifn); | 1671 | xs *out = mastoapi_timeline(NULL, args, ifn); |
| 1676 | 1672 | ||
| 1677 | *body = xs_json_dumps(out, 4); | 1673 | *body = xs_json_dumps(out, 4); |
| 1678 | *ctype = "application/json"; | 1674 | *ctype = "application/json"; |