commit c71047c

default  ·  2023-11-25 07:50:34 +0000 UTC
parent f4633b9
Fixed html_note() where cw_text is XSTYPE_NULL.
1 files changed,  +1, -1
M html.c
M html.c
+1, -1
1@@ -276,7 +276,7 @@ xs_html *html_note(snac *user, char *summary,
2                             xs_html_attr("type", "text"),
3                             xs_html_attr("name", "summary"),
4                             xs_html_attr("placeholder", L("Sensitive content description")),
5-                            xs_html_attr("value", cw_text))))));
6+                            xs_html_attr("value", xs_is_null(cw_text) ? "" : cw_text))))));
7 
8     if (actor_id)
9         xs_html_add(form,