summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorGravatar green2025-04-09 03:09:53 +0200
committerGravatar green2025-04-13 14:43:44 +0200
commit21a99e55081a58f1396d49fb70824f91a8e7c2ab (patch)
tree35ee75a8141a85a909d05f6eed462034100ac43d /httpd.c
parentcheck the extension in a different way (diff)
downloadpenes-snac2-21a99e55081a58f1396d49fb70824f91a8e7c2ab.tar.gz
penes-snac2-21a99e55081a58f1396d49fb70824f91a8e7c2ab.tar.xz
penes-snac2-21a99e55081a58f1396d49fb70824f91a8e7c2ab.zip
emoji: refactor + emoji in display names on front page
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)
139 snac user; 139 snac user;
140 140
141 if (strcmp(uid, "relay") && user_open(&user, uid)) { 141 if (strcmp(uid, "relay") && user_open(&user, uid)) {
142 xs *formatted_name = format_text_with_emoji(NULL, xs_dict_get(user.config, "name"), 1, NULL);
143
142 xs_html_add(ul, 144 xs_html_add(ul,
143 xs_html_tag("li", 145 xs_html_tag("li",
144 xs_html_tag("a", 146 xs_html_tag("a",
@@ -148,7 +150,7 @@ static xs_str *greeting_html(void)
148 xs_html_text("@"), 150 xs_html_text("@"),
149 xs_html_text(host), 151 xs_html_text(host),
150 xs_html_text(" ("), 152 xs_html_text(" ("),
151 xs_html_text(xs_dict_get(user.config, "name")), 153 xs_html_raw(formatted_name),
152 xs_html_text(")")))); 154 xs_html_text(")"))));
153 155
154 user_free(&user); 156 user_free(&user);