diff options
| author | 2024-06-08 05:55:52 +0200 | |
|---|---|---|
| committer | 2024-06-08 05:55:52 +0200 | |
| commit | 44130a02c1f9c0f68b8599c04d73ed31fb669b9e (patch) | |
| tree | 9518e4a48f98eac798370d20f7068faad6dc3e82 | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-44130a02c1f9c0f68b8599c04d73ed31fb669b9e.tar.gz snac2-44130a02c1f9c0f68b8599c04d73ed31fb669b9e.tar.xz snac2-44130a02c1f9c0f68b8599c04d73ed31fb669b9e.zip | |
Use timeline_top_level() in list timelines in the web UI.
| -rw-r--r-- | html.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -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; |