diff options
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, | |||
| 1693 | const char *content = xs_dict_get(msg, "content"); | 1693 | const char *content = xs_dict_get(msg, "content"); |
| 1694 | 1694 | ||
| 1695 | if (xs_type(content) != XSTYPE_STRING) { | 1695 | if (xs_type(content) != XSTYPE_STRING) { |
| 1696 | srv_archive_error("unexpected_content_xstype", | 1696 | if (!xs_is_null(content)) |
| 1697 | "content field type", xs_stock(XSTYPE_DICT), msg); | 1697 | srv_archive_error("unexpected_content_xstype", |
| 1698 | "content field type", xs_stock(XSTYPE_DICT), msg); | ||
| 1698 | 1699 | ||
| 1699 | content = ""; | 1700 | content = ""; |
| 1700 | } | 1701 | } |