summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorGravatar default2024-02-21 08:09:57 +0100
committerGravatar default2024-02-21 08:09:57 +0100
commitb40e71c11c2451b541bd55238b0566a9ecc7570f (patch)
tree7a6ee4381a4eb84f4ecc04e285af191d214824ed /httpd.c
parentRenamed 'local' argument to 'read_only', as it was a bit confusing. (diff)
downloadpenes-snac2-b40e71c11c2451b541bd55238b0566a9ecc7570f.tar.gz
penes-snac2-b40e71c11c2451b541bd55238b0566a9ecc7570f.tar.xz
penes-snac2-b40e71c11c2451b541bd55238b0566a9ecc7570f.zip
Added a page argument to html_timeline().
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/httpd.c b/httpd.c
index fde40cb..d10c675 100644
--- a/httpd.c
+++ b/httpd.c
@@ -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();