mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-10 03:50:38 +03:00
Use timeline_top_level() in list timelines in the web UI.
This commit is contained in:
parent
6de04d9f15
commit
44130a02c1
4
html.c
4
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);
|
xs *next = list_timeline(&snac, lid, skip + show, 1);
|
||||||
|
|
||||||
if (list != NULL) {
|
if (list != NULL) {
|
||||||
|
xs *ttl = timeline_top_level(&snac, list);
|
||||||
|
|
||||||
xs *base = xs_fmt("/list/%s", lid);
|
xs *base = xs_fmt("/list/%s", lid);
|
||||||
xs *name = list_maint(&snac, lid, 3);
|
xs *name = list_maint(&snac, lid, 3);
|
||||||
xs *title = xs_fmt(L("Showing timeline for list '%s'"), name);
|
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);
|
xs_list_len(next), title, base, 1);
|
||||||
*b_size = strlen(*body);
|
*b_size = strlen(*body);
|
||||||
status = HTTP_STATUS_OK;
|
status = HTTP_STATUS_OK;
|
||||||
|
Loading…
Reference in New Issue
Block a user