From 367597e5b67a2a37a3dc00b57fa23691fd5780ff Mon Sep 17 00:00:00 2001 From: default Date: Sun, 25 Aug 2024 08:02:34 +0200 Subject: [PATCH] Only archive error content that is not NULL. --- html.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/html.c b/html.c index 1eb4757..93a7bff 100644 --- a/html.c +++ b/html.c @@ -1693,8 +1693,9 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only, const char *content = xs_dict_get(msg, "content"); if (xs_type(content) != XSTYPE_STRING) { - srv_archive_error("unexpected_content_xstype", - "content field type", xs_stock(XSTYPE_DICT), msg); + if (!xs_is_null(content)) + srv_archive_error("unexpected_content_xstype", + "content field type", xs_stock(XSTYPE_DICT), msg); content = ""; }