snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 6bcfd4e0ee1c4e602d6dc25b88134c7f39a9c418
parent c53052471e0b1e40a3251fab97be0eb16f3fa769
Author: default <nobody@localhost>
Date:   Mon, 17 Oct 2022 12:08:16 +0200

Emoji must be img, not urls.

Diffstat:
Mhtml.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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); } } }