diff options
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -821,10 +821,12 @@ static xs_html *html_user_body(snac *user, int read_only) | |||
| 821 | 821 | ||
| 822 | if (read_only) { | 822 | if (read_only) { |
| 823 | xs *es1 = encode_html(xs_dict_get(user->config, "bio")); | 823 | xs *es1 = encode_html(xs_dict_get(user->config, "bio")); |
| 824 | xs *bio1 = not_really_markdown(es1, NULL, NULL); | ||
| 825 | xs *tags = xs_list_new(); | 824 | xs *tags = xs_list_new(); |
| 825 | xs *bio1 = not_really_markdown(es1, NULL, &tags); | ||
| 826 | xs *bio2 = process_tags(user, bio1, &tags); | 826 | xs *bio2 = process_tags(user, bio1, &tags); |
| 827 | 827 | ||
| 828 | bio2 = replace_shortnames(bio2, tags, 2); | ||
| 829 | |||
| 828 | xs_html *top_user_bio = xs_html_tag("div", | 830 | xs_html *top_user_bio = xs_html_tag("div", |
| 829 | xs_html_attr("class", "p-note snac-top-user-bio"), | 831 | xs_html_attr("class", "p-note snac-top-user-bio"), |
| 830 | xs_html_raw(bio2)); /* already sanitized */ | 832 | xs_html_raw(bio2)); /* already sanitized */ |