summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2022-12-04 11:50:20 +0100
committerdefault <nobody@localhost>2022-12-04 11:50:20 +0100
commit785c859ce3d0bb19264f3dbd075b6825932ab8d0 (patch)
treeeee9c61acc6bfd0f525c6b37fa5fcb6b5975dfaf
parent1c8ff95670eaf1daab526addee22e0c957fd4c18 (diff)
Match the CW checkbox status to what is currently configured.
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index fbb313b..32ffa85 100644
--- a/html.c
+++ b/html.c
@@ -323,7 +323,7 @@ d_char *html_top_controls(snac *snac, d_char *s)
xs_dict_get(snac->config, "avatar"),
L("Bio"),
xs_dict_get(snac->config, "bio"),
- xs_dict_get(snac->config, "cw"),
+ strcmp(xs_dict_get(snac->config, "cw"), "open") == 0 ? "checked" : "",
L("Always show sensitive content"),
L("Email address for notifications"),
email,