diff options
| author | 2022-12-04 12:04:37 +0100 | |
|---|---|---|
| committer | 2022-12-04 12:04:37 +0100 | |
| commit | 0e861196a10a322e95355829257013c1ff90d85d (patch) | |
| tree | e698e00e7c20108273a0e80adec2531afc9b3260 /html.c | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -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, |