summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-04-19 08:56:03 +0200
committerdefault <nobody@localhost>2024-04-19 08:56:03 +0200
commit64adb173cc7006d914394f1380da3f8987b99956 (patch)
tree3c4b3cf6b0fdb99e8f661b4a9d2d702a82c6c495
parent26840e0dc0e7322b2041c21b4e44ed9a34afff4b (diff)
Only add Emoji tags when needed.
-rw-r--r--format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/format.c b/format.c
index 92901bb..8d51351 100644
--- 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();