diff options
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, | |||
| 177 | char *t = NULL; | 177 | char *t = NULL; |
| 178 | 178 | ||
| 179 | if (xs_type(q_vars) == XSTYPE_DICT && (t = xs_dict_get(q_vars, "t"))) { | 179 | if (xs_type(q_vars) == XSTYPE_DICT && (t = xs_dict_get(q_vars, "t"))) { |
| 180 | /** search by tag **/ | ||
| 180 | int skip = 0; | 181 | int skip = 0; |
| 181 | int show = xs_number_get(xs_dict_get(srv_config, "max_timeline_entries")); | 182 | int show = xs_number_get(xs_dict_get(srv_config, "max_timeline_entries")); |
| 182 | char *v; | 183 | char *v; |
| @@ -194,12 +195,13 @@ int server_get_handler(xs_dict *req, const char *q_path, | |||
| 194 | more = 1; | 195 | more = 1; |
| 195 | } | 196 | } |
| 196 | 197 | ||
| 197 | *body = html_timeline(NULL, tl, 0, skip, show, more, t); | 198 | *body = html_timeline(NULL, tl, 0, skip, show, more, t, NULL); |
| 198 | } | 199 | } |
| 199 | else | 200 | else |
| 200 | if (xs_type(xs_dict_get(srv_config, "show_instance_timeline")) == XSTYPE_TRUE) { | 201 | if (xs_type(xs_dict_get(srv_config, "show_instance_timeline")) == XSTYPE_TRUE) { |
| 202 | /** instance timeline **/ | ||
| 201 | xs *tl = timeline_instance_list(0, 30); | 203 | xs *tl = timeline_instance_list(0, 30); |
| 202 | *body = html_timeline(NULL, tl, 0, 0, 0, 0, NULL); | 204 | *body = html_timeline(NULL, tl, 0, 0, 0, 0, NULL, NULL); |
| 203 | } | 205 | } |
| 204 | else | 206 | else |
| 205 | *body = greeting_html(); | 207 | *body = greeting_html(); |