commit 44130a0

default  ·  2024-06-08 03:55:52 +0000 UTC
parent 6de04d9
Use timeline_top_level() in list timelines in the web UI.
1 files changed,  +3, -1
M html.c
M html.c
+3, -1
 1@@ -2830,11 +2830,13 @@ int html_get_handler(const xs_dict *req, const char *q_path,
 2             xs *next = list_timeline(&snac, lid, skip + show, 1);
 3 
 4             if (list != NULL) {
 5+                xs *ttl = timeline_top_level(&snac, list);
 6+
 7                 xs *base = xs_fmt("/list/%s", lid);
 8                 xs *name = list_maint(&snac, lid, 3);
 9                 xs *title = xs_fmt(L("Showing timeline for list '%s'"), name);
10 
11-                *body = html_timeline(&snac, list, 0, skip, show,
12+                *body = html_timeline(&snac, ttl, 0, skip, show,
13                     xs_list_len(next), title, base, 1);
14                 *b_size = strlen(*body);
15                 status  = HTTP_STATUS_OK;