From 3f166e55d6975a1f787d2810801f3ea34eed05e4 Mon Sep 17 00:00:00 2001 From: Uko Kokņevičs Date: Mon, 21 Apr 2025 11:02:05 +0000 Subject: Don't remove image attachments from posts that have MRFs adding links to images --- html.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/html.c b/html.c index 5f0d75c..157a6eb 100644 --- a/html.c +++ b/html.c @@ -2392,8 +2392,11 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, const char *name = xs_dict_get(a, "name"); /* if this image is already in the post content, skip */ - if (content && xs_str_in(content, o_href) != -1) - continue; + /* TODO: This should check more specifically that content has or some such! Some + instances also add a link to the image in post content which causes this to remove the image from + attachments. */ + /* if (content && xs_str_in(content, o_href) != -1) */ + /* continue; */ /* drop silently any attachment that may include JavaScript */ if (strcmp(type, "text/html") == 0) -- cgit v1.2.3