commit a0e813db0ae3cbf8dae07ec5bec2e882c3b560c5
parent 158b360181e2006ba073fa9332ca8b27690f12dd
Author: default <nobody@localhost>
Date: Tue, 11 Jul 2023 20:34:02 +0200
Fixed HTML re-encoding in the user bio.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/html.c b/html.c
@@ -368,10 +368,10 @@ d_char *html_user_header(snac *snac, d_char *s, int local)
s = xs_str_cat(s, s1);
if (local) {
- xs *es1 = encode_html(xs_dict_get(snac->config, "bio"));
+ xs *es1 = encode_html(xs_dict_get(snac->config, "bio"));
xs *bio1 = not_really_markdown(es1, NULL);
xs *tags = xs_list_new();
- xs *bio2 = encode_html(process_tags(snac, bio1, &tags));
+ xs *bio2 = process_tags(snac, bio1, &tags);
xs *s1 = xs_fmt("<div class=\"p-note snac-top-user-bio\">%s</div>\n", bio2);
s = xs_str_cat(s, s1);