Fixed html_note() where cw_text is XSTYPE_NULL.

This commit is contained in:
default 2023-11-25 08:50:34 +01:00
parent f4633b9356
commit c71047ca02

2
html.c
View File

@ -276,7 +276,7 @@ xs_html *html_note(snac *user, char *summary,
xs_html_attr("type", "text"),
xs_html_attr("name", "summary"),
xs_html_attr("placeholder", L("Sensitive content description")),
xs_html_attr("value", cw_text))))));
xs_html_attr("value", xs_is_null(cw_text) ? "" : cw_text))))));
if (actor_id)
xs_html_add(form,