summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--html.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/html.c b/html.c
index 32ffa85..a9f399e 100644
--- a/html.c
+++ b/html.c
@@ -302,6 +302,10 @@ d_char *html_top_controls(snac *snac, d_char *s)
302 if (xs_is_null(email)) 302 if (xs_is_null(email))
303 email = ""; 303 email = "";
304 304
305 char *cw = xs_dict_get(snac->config, "cw");
306 if (xs_is_null(cw))
307 cw = "";
308
305 xs *s1 = xs_fmt(_tmpl, 309 xs *s1 = xs_fmt(_tmpl,
306 snac->actor, 310 snac->actor,
307 L("Sensitive content"), 311 L("Sensitive content"),
@@ -323,7 +327,7 @@ d_char *html_top_controls(snac *snac, d_char *s)
323 xs_dict_get(snac->config, "avatar"), 327 xs_dict_get(snac->config, "avatar"),
324 L("Bio"), 328 L("Bio"),
325 xs_dict_get(snac->config, "bio"), 329 xs_dict_get(snac->config, "bio"),
326 strcmp(xs_dict_get(snac->config, "cw"), "open") == 0 ? "checked" : "", 330 strcmp(cw, "open") == 0 ? "checked" : "",
327 L("Always show sensitive content"), 331 L("Always show sensitive content"),
328 L("Email address for notifications"), 332 L("Email address for notifications"),
329 email, 333 email,