commit 64adb17

default  ·  2024-04-19 06:56:03 +0000 UTC
parent 26840e0
Only add Emoji tags when needed.
1 files changed,  +1, -1
+1, -1
1@@ -241,7 +241,7 @@ xs_str *not_really_markdown(const char *content, xs_list **attach, xs_list **tag
2 
3             /* is it an URL to an image? */
4             if (xs_startswith(v, "https:/" "/") && xs_startswith((t = xs_mime_by_ext(v)), "image/")) {
5-                if (tag) {
6+                if (tag && xs_str_in(s, k) != -1) {
7                     /* add the emoji to the tag list */
8                     xs *e = xs_dict_new();
9                     xs *i = xs_dict_new();