From cbf71ca0cabdf46a1eb595db01601858c8823acc Mon Sep 17 00:00:00 2001 From: grunfink Date: Fri, 6 Jun 2025 21:02:28 +0200 Subject: Skip incomplete attachments. --- html.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'html.c') diff --git a/html.c b/html.c index a6e5f98..d513d10 100644 --- a/html.c +++ b/html.c @@ -2427,6 +2427,9 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, const char *o_href = xs_dict_get(a, "href"); const char *name = xs_dict_get(a, "name"); + if (!xs_is_string(type) || !xs_is_string(o_href)) + continue; + /* if this URL is already in the post content, skip */ if (content && xs_str_in(content, o_href) != -1) continue; -- cgit v1.2.3