snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit f631fc5ed22cb49d9d9f6a481f4a5d227c180246
parent a727bb29f6a4b1e66a4ad0664e4557f69d1e2ac4
Author: default <nobody@localhost>
Date:   Fri, 24 May 2024 19:06:39 +0200

Added a 'title' to each list timeline.

Diffstat:
Mhtml.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/html.c b/html.c @@ -2072,14 +2072,17 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only, xs_html_add(body, lol); while (xs_list_next(lists, &v, &ct)) { + const char *lname = xs_list_get(v, 1); xs *url = xs_fmt("%s/list/%s", user->actor, xs_list_get(v, 0)); + xs *ttl = xs_fmt(L("Timeline for list '%s'"), lname); xs_html_add(lol, xs_html_tag("li", xs_html_tag("a", xs_html_attr("href", url), xs_html_attr("class", "snac-list-link"), - xs_html_text(xs_list_get(v, 1))))); + xs_html_attr("title", ttl), + xs_html_text(lname)))); } } }