summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar grunfink2025-05-03 18:55:10 +0200
committerGravatar grunfink2025-05-03 18:55:10 +0200
commit6878e3fc939c3dac9853a3a33bfab7a289c7648b (patch)
treea1e68fec08620a42a42c9a68edfdd80b4213497e /html.c
parentNo longer drop text/html attachements. (diff)
downloadpenes-snac2-6878e3fc939c3dac9853a3a33bfab7a289c7648b.tar.gz
penes-snac2-6878e3fc939c3dac9853a3a33bfab7a289c7648b.tar.xz
penes-snac2-6878e3fc939c3dac9853a3a33bfab7a289c7648b.zip
Also add direct and markdown links in posts as attachments.
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index 288968d..0652892 100644
--- a/html.c
+++ b/html.c
@@ -2388,7 +2388,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
2388 const char *o_href = xs_dict_get(a, "href"); 2388 const char *o_href = xs_dict_get(a, "href");
2389 const char *name = xs_dict_get(a, "name"); 2389 const char *name = xs_dict_get(a, "name");
2390 2390
2391 /* if this image is already in the post content, skip */ 2391 /* if this URL is already in the post content, skip */
2392 if (content && xs_str_in(content, o_href) != -1) 2392 if (content && xs_str_in(content, o_href) != -1)
2393 continue; 2393 continue;
2394 2394