aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2025-03-17 08:18:41 +0100
committerdefault <nobody@localhost>2025-03-17 08:18:41 +0100
commit49134582055a174951b23314170ec42c33796325 (patch)
tree72337c4455df8d856d516c33797e87038df28fde /html.c
parent4c23d1f86e4844d6d8e88a41a65ce0a8a9c50ad1 (diff)
mastoapi: added support for /api/v1/custom_emojis (contributed by violette).
Diffstat (limited to 'html.c')
-rw-r--r--html.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/html.c b/html.c
index a90a51f..a56b523 100644
--- a/html.c
+++ b/html.c
@@ -92,6 +92,7 @@ xs_str *replace_shortnames(xs_str *s, const xs_list *tag, int ems, const char *p
xs_html *img = xs_html_sctag("img",
xs_html_attr("loading", "lazy"),
xs_html_attr("src", url),
+ xs_html_attr("alt", n),
xs_html_attr("style", style));
xs *s1 = xs_html_render(img);