mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Emoji must be img, not urls.
This commit is contained in:
parent
c53052471e
commit
6bcfd4e0ee
1 changed files with 2 additions and 1 deletions
3
html.c
3
html.c
|
@ -77,8 +77,9 @@ d_char *html_msg_icon(snac *snac, d_char *os, char *msg)
|
||||||
|
|
||||||
if (n && i) {
|
if (n && i) {
|
||||||
char *u = xs_dict_get(i, "url");
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue