summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-02-22 12:26:32 +0100
committerdefault <nobody@localhost>2024-02-22 12:26:32 +0100
commitd4364e80f7b16126e5f6434b2b487603b8354dd9 (patch)
treecc7da36ea96fc942b111a74f842735feba22cac8 /httpd.c
parent69d33622d3065777a16f10f4b7ebc2627a8a99bb (diff)
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.
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c4
1 files changed, 2 insertions, 2 deletions
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();