summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/mastoapi.c b/mastoapi.c
index ffd1982..def5598 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -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";