diff options
author | default <nobody@localhost> | 2024-02-21 08:09:57 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2024-02-21 08:09:57 +0100 |
commit | b40e71c11c2451b541bd55238b0566a9ecc7570f (patch) | |
tree | 7a6ee4381a4eb84f4ecc04e285af191d214824ed /httpd.c | |
parent | 2b814287fd89941f275c478e7e3d51af6bf72775 (diff) |
Added a page argument to html_timeline().
Diffstat (limited to 'httpd.c')
-rw-r--r-- | httpd.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -177,6 +177,7 @@ int server_get_handler(xs_dict *req, const char *q_path, char *t = NULL; if (xs_type(q_vars) == XSTYPE_DICT && (t = xs_dict_get(q_vars, "t"))) { + /** search by tag **/ int skip = 0; int show = xs_number_get(xs_dict_get(srv_config, "max_timeline_entries")); char *v; @@ -194,12 +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); + *body = html_timeline(NULL, tl, 0, skip, show, more, t, NULL); } 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); + *body = html_timeline(NULL, tl, 0, 0, 0, 0, NULL, NULL); } else *body = greeting_html(); |