diff options
author | default <nobody@localhost> | 2023-08-14 11:24:41 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-08-14 11:24:41 +0200 |
commit | 86571f37bb3e85acaed6d0212b5543130a6766ce (patch) | |
tree | 1b2209d18369e527da3bed75cdb09927476283ad /httpd.c | |
parent | 64111f85bdf1dd74bb3bf1ff6886f497cc74f6bd (diff) |
The instance URL can now show a timeline.
Diffstat (limited to 'httpd.c')
-rw-r--r-- | httpd.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -114,7 +114,14 @@ int server_get_handler(xs_dict *req, const char *q_path, /* is it the server root? */ if (*q_path == '\0') { - if ((*body = greeting_html()) != NULL) + if (xs_type(xs_dict_get(srv_config, "show_instance_timeline")) == XSTYPE_TRUE) { + xs *tl = timeline_instance_list(0, 30); + *body = html_timeline(NULL, tl, 0, 0, 0, 0); + } + else + *body = greeting_html(); + + if (*body) status = 200; } else |