snac2

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

commit 64adb173cc7006d914394f1380da3f8987b99956
parent 26840e0dc0e7322b2041c21b4e44ed9a34afff4b
Author: default <nobody@localhost>
Date:   Fri, 19 Apr 2024 08:56:03 +0200

Only add Emoji tags when needed.

Diffstat:
Mformat.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/format.c b/format.c @@ -241,7 +241,7 @@ xs_str *not_really_markdown(const char *content, xs_list **attach, xs_list **tag /* is it an URL to an image? */ if (xs_startswith(v, "https:/" "/") && xs_startswith((t = xs_mime_by_ext(v)), "image/")) { - if (tag) { + if (tag && xs_str_in(s, k) != -1) { /* add the emoji to the tag list */ xs *e = xs_dict_new(); xs *i = xs_dict_new();