diff options
| author | green <dandelions@disroot.org> | 2025-04-09 03:09:53 +0200 |
|---|---|---|
| committer | green <dandelions@disroot.org> | 2025-04-13 14:43:44 +0200 |
| commit | 21a99e55081a58f1396d49fb70824f91a8e7c2ab (patch) | |
| tree | 35ee75a8141a85a909d05f6eed462034100ac43d /httpd.c | |
| parent | 15100ad81941c967ce34cc7534bf9b6d7b585e91 (diff) | |
emoji: refactor + emoji in display names on front page
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); |