commit e0fb6a7
default
·
2024-11-24 17:36:33 +0000 UTC
parent 45f29ed
Fixed bio processing in the public page.
1 files changed,
+4,
-4
M
html.c
M
html.c
+4,
-4
1@@ -829,16 +829,16 @@ static xs_html *html_user_body(snac *user, int read_only)
2 }
3
4 if (read_only) {
5- xs *es1 = encode_html(xs_dict_get(user->config, "bio"));
6 xs *tags = xs_list_new();
7- xs *bio1 = not_really_markdown(es1, NULL, &tags);
8+ xs *bio1 = not_really_markdown(xs_dict_get(user->config, "bio"), NULL, &tags);
9 xs *bio2 = process_tags(user, bio1, &tags);
10+ xs *bio3 = sanitize(bio2);
11
12- bio2 = replace_shortnames(bio2, tags, 2, proxy);
13+ bio3 = replace_shortnames(bio3, tags, 2, proxy);
14
15 xs_html *top_user_bio = xs_html_tag("div",
16 xs_html_attr("class", "p-note snac-top-user-bio"),
17- xs_html_raw(bio2)); /* already sanitized */
18+ xs_html_raw(bio3)); /* already sanitized */
19
20 xs_html_add(top_user,
21 top_user_bio);