summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-06-08 05:55:52 +0200
committerdefault <nobody@localhost>2024-06-08 05:55:52 +0200
commit44130a02c1f9c0f68b8599c04d73ed31fb669b9e (patch)
tree9518e4a48f98eac798370d20f7068faad6dc3e82
parent6de04d9f1517fa334101964544d8aeab14eaec97 (diff)
Use timeline_top_level() in list timelines in the web UI.
-rw-r--r--html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/html.c b/html.c
index 0d157c8..4ac4799 100644
--- a/html.c
+++ b/html.c
@@ -2830,11 +2830,13 @@ int html_get_handler(const xs_dict *req, const char *q_path,
xs *next = list_timeline(&snac, lid, skip + show, 1);
if (list != NULL) {
+ xs *ttl = timeline_top_level(&snac, list);
+
xs *base = xs_fmt("/list/%s", lid);
xs *name = list_maint(&snac, lid, 3);
xs *title = xs_fmt(L("Showing timeline for list '%s'"), name);
- *body = html_timeline(&snac, list, 0, skip, show,
+ *body = html_timeline(&snac, ttl, 0, skip, show,
xs_list_len(next), title, base, 1);
*b_size = strlen(*body);
status = HTTP_STATUS_OK;