mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-09-19 18:00:23 +03:00
Only archive error content that is not NULL.
This commit is contained in:
parent
15095709f7
commit
367597e5b6
5
html.c
5
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");
|
const char *content = xs_dict_get(msg, "content");
|
||||||
|
|
||||||
if (xs_type(content) != XSTYPE_STRING) {
|
if (xs_type(content) != XSTYPE_STRING) {
|
||||||
srv_archive_error("unexpected_content_xstype",
|
if (!xs_is_null(content))
|
||||||
"content field type", xs_stock(XSTYPE_DICT), msg);
|
srv_archive_error("unexpected_content_xstype",
|
||||||
|
"content field type", xs_stock(XSTYPE_DICT), msg);
|
||||||
|
|
||||||
content = "";
|
content = "";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user