commit 785c859

default  ·  2022-12-04 10:50:20 +0000 UTC
parent 1c8ff95
Match the CW checkbox status to what is currently configured.
1 files changed,  +1, -1
M html.c
M html.c
+1, -1
1@@ -323,7 +323,7 @@ d_char *html_top_controls(snac *snac, d_char *s)
2         xs_dict_get(snac->config, "avatar"),
3         L("Bio"),
4         xs_dict_get(snac->config, "bio"),
5-        xs_dict_get(snac->config, "cw"),
6+        strcmp(xs_dict_get(snac->config, "cw"), "open") == 0 ? "checked" : "",
7         L("Always show sensitive content"),
8         L("Email address for notifications"),
9         email,