summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2022-12-04 12:04:37 +0100
committerGravatar default2022-12-04 12:04:37 +0100
commit0e861196a10a322e95355829257013c1ff90d85d (patch)
treee698e00e7c20108273a0e80adec2531afc9b3260 /html.c
parentUpdated RELEASE_NOTES. (diff)
downloadsnac2-0e861196a10a322e95355829257013c1ff90d85d.tar.gz
snac2-0e861196a10a322e95355829257013c1ff90d85d.tar.xz
snac2-0e861196a10a322e95355829257013c1ff90d85d.zip
Fixed crash in new code (moron me...)
Diffstat (limited to 'html.c')
-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,