diff options
author | default <nobody@localhost> | 2022-12-04 12:04:37 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2022-12-04 12:04:37 +0100 |
commit | 0e861196a10a322e95355829257013c1ff90d85d (patch) | |
tree | e698e00e7c20108273a0e80adec2531afc9b3260 /html.c | |
parent | 926e90346432c97c77286aadbba34ebabbcaff46 (diff) |
Fixed crash in new code (moron me...)
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -302,6 +302,10 @@ d_char *html_top_controls(snac *snac, d_char *s) if (xs_is_null(email)) email = ""; + char *cw = xs_dict_get(snac->config, "cw"); + if (xs_is_null(cw)) + cw = ""; + xs *s1 = xs_fmt(_tmpl, snac->actor, L("Sensitive content"), @@ -323,7 +327,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"), - strcmp(xs_dict_get(snac->config, "cw"), "open") == 0 ? "checked" : "", + strcmp(cw, "open") == 0 ? "checked" : "", L("Always show sensitive content"), L("Email address for notifications"), email, |