mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
Only add Emoji tags when needed.
This commit is contained in:
parent
26840e0dc0
commit
64adb173cc
1 changed files with 1 additions and 1 deletions
2
format.c
2
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();
|
||||
|
|
Loading…
Reference in a new issue