commit 367597e

default  ·  2024-08-25 06:02:34 +0000 UTC
parent 1509570
Only archive error content that is not NULL.
1 files changed,  +3, -2
M html.c
M html.c
+3, -2
 1@@ -1693,8 +1693,9 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
 2         const char *content = xs_dict_get(msg, "content");
 3 
 4         if (xs_type(content) != XSTYPE_STRING) {
 5-            srv_archive_error("unexpected_content_xstype",
 6-                "content field type", xs_stock(XSTYPE_DICT), msg);
 7+            if (!xs_is_null(content))
 8+                srv_archive_error("unexpected_content_xstype",
 9+                    "content field type", xs_stock(XSTYPE_DICT), msg);
10 
11             content = "";
12         }