summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2024-06-08 05:55:52 +0200
committerGravatar default2024-06-08 05:55:52 +0200
commit44130a02c1f9c0f68b8599c04d73ed31fb669b9e (patch)
tree9518e4a48f98eac798370d20f7068faad6dc3e82
parentUpdated RELEASE_NOTES. (diff)
downloadpenes-snac2-44130a02c1f9c0f68b8599c04d73ed31fb669b9e.tar.gz
penes-snac2-44130a02c1f9c0f68b8599c04d73ed31fb669b9e.tar.xz
penes-snac2-44130a02c1f9c0f68b8599c04d73ed31fb669b9e.zip
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,
2830 xs *next = list_timeline(&snac, lid, skip + show, 1); 2830 xs *next = list_timeline(&snac, lid, skip + show, 1);
2831 2831
2832 if (list != NULL) { 2832 if (list != NULL) {
2833 xs *ttl = timeline_top_level(&snac, list);
2834
2833 xs *base = xs_fmt("/list/%s", lid); 2835 xs *base = xs_fmt("/list/%s", lid);
2834 xs *name = list_maint(&snac, lid, 3); 2836 xs *name = list_maint(&snac, lid, 3);
2835 xs *title = xs_fmt(L("Showing timeline for list '%s'"), name); 2837 xs *title = xs_fmt(L("Showing timeline for list '%s'"), name);
2836 2838
2837 *body = html_timeline(&snac, list, 0, skip, show, 2839 *body = html_timeline(&snac, ttl, 0, skip, show,
2838 xs_list_len(next), title, base, 1); 2840 xs_list_len(next), title, base, 1);
2839 *b_size = strlen(*body); 2841 *b_size = strlen(*body);
2840 status = HTTP_STATUS_OK; 2842 status = HTTP_STATUS_OK;