Merge pull request 'Close a tag in history list' (#8) from kensanata/snac2:close-tag into master

Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/8
This commit is contained in:
grunfink 2022-12-01 18:41:07 +00:00
commit 7ad6ff63a5

2
html.c
View file

@ -812,7 +812,7 @@ d_char *html_timeline(snac *snac, char *list, int local)
while (xs_list_iter(&p, &v)) {
xs *fn = xs_replace(v, ".html", "");
xs *s1 = xs_fmt(
"<li><a href=\"%s/h/%s\">%s</li>\n",
"<li><a href=\"%s/h/%s\">%s</a></li>\n",
snac->actor, v, fn);
s = xs_str_cat(s, s1);