summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2024-10-08 20:30:20 +0200
committerGravatar default2024-10-08 20:30:20 +0200
commit107e7c0d293f5ffc640daad49f6db9f5af66ebb9 (patch)
treeb54e4823cb26180e98d1a5bafcc0ebe4267f33d3 /html.c
parentMore migration work. (diff)
downloadsnac2-107e7c0d293f5ffc640daad49f6db9f5af66ebb9.tar.gz
snac2-107e7c0d293f5ffc640daad49f6db9f5af66ebb9.tar.xz
snac2-107e7c0d293f5ffc640daad49f6db9f5af66ebb9.zip
Fixed emojis in the public profile.
Diffstat (limited to 'html.c')
-rw-r--r--html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/html.c b/html.c
index 810cd88..99cffdf 100644
--- a/html.c
+++ b/html.c
@@ -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 */