diff options
author | default <nobody@localhost> | 2024-08-25 08:02:34 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2024-08-25 08:02:34 +0200 |
commit | 367597e5b67a2a37a3dc00b57fa23691fd5780ff (patch) | |
tree | 52540d34a26becd532fa42287dcc79abec75e4a0 /html.c | |
parent | 15095709f7e82251835026fe969ed7fc4207b696 (diff) |
Only archive error content that is not NULL.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 = ""; } |