diff options
| author | grunfink <grunfink@noreply.codeberg.org> | 2025-05-06 03:55:43 +0000 |
|---|---|---|
| committer | grunfink <grunfink@noreply.codeberg.org> | 2025-05-06 03:55:43 +0000 |
| commit | 6e42d34eab2debc6f0bafba01bb87d5351371858 (patch) | |
| tree | 1682a1f4019f33e9b05a68ff5ad53cbb66640b9b /httpd.c | |
| parent | 97568a7c930cf7aaa5e4f6c72c3831837c32b111 (diff) | |
| parent | 0c03e6c9d9a6b65fede94cc9eab34a05746f8d5e (diff) | |
Merge pull request 'Display custom emoji in more places' (#343) from dandelions/snac2:emoji-pr into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/343
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -139,6 +139,8 @@ static xs_str *greeting_html(void) snac user; if (strcmp(uid, "relay") && user_open(&user, uid)) { + xs *formatted_name = format_text_with_emoji(NULL, xs_dict_get(user.config, "name"), 1, NULL); + xs_html_add(ul, xs_html_tag("li", xs_html_tag("a", @@ -148,7 +150,7 @@ static xs_str *greeting_html(void) xs_html_text("@"), xs_html_text(host), xs_html_text(" ("), - xs_html_text(xs_dict_get(user.config, "name")), + xs_html_raw(formatted_name), xs_html_text(")")))); user_free(&user); |