mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 06:25:04 +00:00
Fixed crash in new code (moron me...)
This commit is contained in:
parent
926e903464
commit
0e861196a1
1 changed files with 5 additions and 1 deletions
6
html.c
6
html.c
|
@ -302,6 +302,10 @@ d_char *html_top_controls(snac *snac, d_char *s)
|
||||||
if (xs_is_null(email))
|
if (xs_is_null(email))
|
||||||
email = "";
|
email = "";
|
||||||
|
|
||||||
|
char *cw = xs_dict_get(snac->config, "cw");
|
||||||
|
if (xs_is_null(cw))
|
||||||
|
cw = "";
|
||||||
|
|
||||||
xs *s1 = xs_fmt(_tmpl,
|
xs *s1 = xs_fmt(_tmpl,
|
||||||
snac->actor,
|
snac->actor,
|
||||||
L("Sensitive content"),
|
L("Sensitive content"),
|
||||||
|
@ -323,7 +327,7 @@ d_char *html_top_controls(snac *snac, d_char *s)
|
||||||
xs_dict_get(snac->config, "avatar"),
|
xs_dict_get(snac->config, "avatar"),
|
||||||
L("Bio"),
|
L("Bio"),
|
||||||
xs_dict_get(snac->config, "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("Always show sensitive content"),
|
||||||
L("Email address for notifications"),
|
L("Email address for notifications"),
|
||||||
email,
|
email,
|
||||||
|
|
Loading…
Reference in a new issue