From 107e7c0d293f5ffc640daad49f6db9f5af66ebb9 Mon Sep 17 00:00:00 2001 From: default Date: Tue, 8 Oct 2024 20:30:20 +0200 Subject: Fixed emojis in the public profile. --- html.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'html.c') 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) if (read_only) { xs *es1 = encode_html(xs_dict_get(user->config, "bio")); - xs *bio1 = not_really_markdown(es1, NULL, NULL); xs *tags = xs_list_new(); + xs *bio1 = not_really_markdown(es1, NULL, &tags); xs *bio2 = process_tags(user, bio1, &tags); + bio2 = replace_shortnames(bio2, tags, 2); + xs_html *top_user_bio = xs_html_tag("div", xs_html_attr("class", "p-note snac-top-user-bio"), xs_html_raw(bio2)); /* already sanitized */ -- cgit v1.2.3