From 785c859ce3d0bb19264f3dbd075b6825932ab8d0 Mon Sep 17 00:00:00 2001 From: default Date: Sun, 4 Dec 2022 11:50:20 +0100 Subject: Match the CW checkbox status to what is currently configured. --- html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'html.c') 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, -- cgit v1.2.3