From c6adc4e4d143cd33c8bfe92a711937739d4a57f7 Mon Sep 17 00:00:00 2001 From: Uko Kokņevičs Date: Fri, 23 May 2025 21:26:35 +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 5c4991e..c1f306f 100644 --- a/html.c +++ b/html.c @@ -2453,8 +2453,11 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, continue; /* if this URL 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; */ if (strcmp(type, "image/svg+xml") == 0 && !xs_is_true(xs_dict_get(srv_config, "enable_svg"))) continue; -- cgit v1.2.3