aboutsummaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/httpd.c b/httpd.c
index 22a148d..836c256 100644
--- a/httpd.c
+++ b/httpd.c
@@ -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);