summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--html.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/html.c b/html.c
index c978bfb..8e3152d 100644
--- a/html.c
+++ b/html.c
@@ -519,6 +519,13 @@ d_char *html_top_controls(snac *snac, d_char *s)
519 519
520 const char *bot = xs_dict_get(snac->config, "bot"); 520 const char *bot = xs_dict_get(snac->config, "bot");
521 521
522 xs *es1 = encode_html(xs_dict_get(snac->config, "name"));
523 xs *es2 = encode_html(xs_dict_get(snac->config, "bio"));
524 xs *es3 = encode_html(email);
525 xs *es4 = encode_html(telegram_bot);
526 xs *es5 = encode_html(telegram_chat_id);
527 xs *es6 = encode_html(purge_days);
528
522 xs *s1 = xs_fmt(_tmpl, 529 xs *s1 = xs_fmt(_tmpl,
523 snac->actor, 530 snac->actor,
524 L("Sensitive content"), 531 L("Sensitive content"),
@@ -550,19 +557,19 @@ d_char *html_top_controls(snac *snac, d_char *s)
550 L("User setup..."), 557 L("User setup..."),
551 snac->actor, 558 snac->actor,
552 L("Display name"), 559 L("Display name"),
553 encode_html(xs_dict_get(snac->config, "name")), 560 es1,
554 L("Avatar"), 561 L("Avatar"),
555 L("Bio"), 562 L("Bio"),
556 encode_html(xs_dict_get(snac->config, "bio")), 563 es2,
557 strcmp(cw, "open") == 0 ? "checked" : "", 564 strcmp(cw, "open") == 0 ? "checked" : "",
558 L("Always show sensitive content"), 565 L("Always show sensitive content"),
559 L("Email address for notifications"), 566 L("Email address for notifications"),
560 encode_html(email), 567 es3,
561 L("Telegram notifications (bot key and chat id)"), 568 L("Telegram notifications (bot key and chat id)"),
562 encode_html(telegram_bot), 569 es4,
563 encode_html(telegram_chat_id), 570 es5,
564 L("Maximum days to keep posts (0: server settings)"), 571 L("Maximum days to keep posts (0: server settings)"),
565 encode_html(purge_days), 572 es6,
566 xs_type(d_dm_f_u) == XSTYPE_TRUE ? "checked" : "", 573 xs_type(d_dm_f_u) == XSTYPE_TRUE ? "checked" : "",
567 L("Drop direct messages from people you don't follow"), 574 L("Drop direct messages from people you don't follow"),
568 xs_type(bot) == XSTYPE_TRUE ? "checked" : "", 575 xs_type(bot) == XSTYPE_TRUE ? "checked" : "",