diff options
| author | 2024-04-19 08:56:03 +0200 | |
|---|---|---|
| committer | 2024-04-19 08:56:03 +0200 | |
| commit | 64adb173cc7006d914394f1380da3f8987b99956 (patch) | |
| tree | 3c4b3cf6b0fdb99e8f661b4a9d2d702a82c6c495 /format.c | |
| parent | Some tweaks to previous patch. (diff) | |
| download | snac2-64adb173cc7006d914394f1380da3f8987b99956.tar.gz snac2-64adb173cc7006d914394f1380da3f8987b99956.tar.xz snac2-64adb173cc7006d914394f1380da3f8987b99956.zip | |
Only add Emoji tags when needed.
Diffstat (limited to '')
| -rw-r--r-- | format.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -241,7 +241,7 @@ xs_str *not_really_markdown(const char *content, xs_list **attach, xs_list **tag | |||
| 241 | 241 | ||
| 242 | /* is it an URL to an image? */ | 242 | /* is it an URL to an image? */ |
| 243 | if (xs_startswith(v, "https:/" "/") && xs_startswith((t = xs_mime_by_ext(v)), "image/")) { | 243 | if (xs_startswith(v, "https:/" "/") && xs_startswith((t = xs_mime_by_ext(v)), "image/")) { |
| 244 | if (tag) { | 244 | if (tag && xs_str_in(s, k) != -1) { |
| 245 | /* add the emoji to the tag list */ | 245 | /* add the emoji to the tag list */ |
| 246 | xs *e = xs_dict_new(); | 246 | xs *e = xs_dict_new(); |
| 247 | xs *i = xs_dict_new(); | 247 | xs *i = xs_dict_new(); |