From d4364e80f7b16126e5f6434b2b487603b8354dd9 Mon Sep 17 00:00:00 2001 From: default Date: Thu, 22 Feb 2024 12:26:32 +0100 Subject: Added *another argument* to html_timeline() to select where posts are taken from. This way, the /instance logged-in timeline can show posts that are not really into a user's timeline. --- httpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'httpd.c') diff --git a/httpd.c b/httpd.c index d10c675..319a7b3 100644 --- a/httpd.c +++ b/httpd.c @@ -195,13 +195,13 @@ int server_get_handler(xs_dict *req, const char *q_path, more = 1; } - *body = html_timeline(NULL, tl, 0, skip, show, more, t, NULL); + *body = html_timeline(NULL, tl, 0, skip, show, more, t, NULL, 0); } else if (xs_type(xs_dict_get(srv_config, "show_instance_timeline")) == XSTYPE_TRUE) { /** instance timeline **/ xs *tl = timeline_instance_list(0, 30); - *body = html_timeline(NULL, tl, 0, 0, 0, 0, NULL, NULL); + *body = html_timeline(NULL, tl, 0, 0, 0, 0, NULL, NULL, 0); } else *body = greeting_html(); -- cgit v1.2.3