summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-10-17 12:08:16 +0200
committerdefault <nobody@localhost>2022-10-17 12:08:16 +0200
commit6bcfd4e0ee1c4e602d6dc25b88134c7f39a9c418 (patch)
tree5c0bb89542385e49c421dddbca5845327dd4f43b
parentc53052471e0b1e40a3251fab97be0eb16f3fa769 (diff)
Emoji must be img, not urls.
-rw-r--r--html.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/html.c b/html.c
index ebb2307..581feb2 100644
--- a/html.c
+++ b/html.c
@@ -77,8 +77,9 @@ d_char *html_msg_icon(snac *snac, d_char *os, char *msg)
if (n && i) {
char *u = xs_dict_get(i, "url");
+ xs *img = xs_fmt("<img src=\"%s\" style=\"height: 1em\"/>", u);
- name = xs_replace_i(name, n, u);
+ name = xs_replace_i(name, n, img);
}
}
}