diff options
| author | 2024-11-24 18:36:33 +0100 | |
|---|---|---|
| committer | 2024-11-24 18:36:33 +0100 | |
| commit | e0fb6a70648297bc02a64e6d4390874a9c6085db (patch) | |
| tree | 48a2897990b6061fae099fa689aadd8654aceeae /html.c | |
| parent | Updated documentation. (diff) | |
| download | snac2-e0fb6a70648297bc02a64e6d4390874a9c6085db.tar.gz snac2-e0fb6a70648297bc02a64e6d4390874a9c6085db.tar.xz snac2-e0fb6a70648297bc02a64e6d4390874a9c6085db.zip | |
Fixed bio processing in the public page.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -829,16 +829,16 @@ static xs_html *html_user_body(snac *user, int read_only) | |||
| 829 | } | 829 | } |
| 830 | 830 | ||
| 831 | if (read_only) { | 831 | if (read_only) { |
| 832 | xs *es1 = encode_html(xs_dict_get(user->config, "bio")); | ||
| 833 | xs *tags = xs_list_new(); | 832 | xs *tags = xs_list_new(); |
| 834 | xs *bio1 = not_really_markdown(es1, NULL, &tags); | 833 | xs *bio1 = not_really_markdown(xs_dict_get(user->config, "bio"), NULL, &tags); |
| 835 | xs *bio2 = process_tags(user, bio1, &tags); | 834 | xs *bio2 = process_tags(user, bio1, &tags); |
| 835 | xs *bio3 = sanitize(bio2); | ||
| 836 | 836 | ||
| 837 | bio2 = replace_shortnames(bio2, tags, 2, proxy); | 837 | bio3 = replace_shortnames(bio3, tags, 2, proxy); |
| 838 | 838 | ||
| 839 | xs_html *top_user_bio = xs_html_tag("div", | 839 | xs_html *top_user_bio = xs_html_tag("div", |
| 840 | xs_html_attr("class", "p-note snac-top-user-bio"), | 840 | xs_html_attr("class", "p-note snac-top-user-bio"), |
| 841 | xs_html_raw(bio2)); /* already sanitized */ | 841 | xs_html_raw(bio3)); /* already sanitized */ |
| 842 | 842 | ||
| 843 | xs_html_add(top_user, | 843 | xs_html_add(top_user, |
| 844 | top_user_bio); | 844 | top_user_bio); |