summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2023-08-09 14:42:38 +0200
committerGravatar default2023-08-09 14:42:38 +0200
commitcdb201cc041b4569be0f6472adcf25a648ed8aa1 (patch)
tree0fa22fac8b4846e85b5b18addf7eb2764dda86e8 /html.c
parentAdded web interface for hide_followers_only. (diff)
downloadsnac2-cdb201cc041b4569be0f6472adcf25a648ed8aa1.tar.gz
snac2-cdb201cc041b4569be0f6472adcf25a648ed8aa1.tar.xz
snac2-cdb201cc041b4569be0f6472adcf25a648ed8aa1.zip
Revert "Added web interface for hide_followers_only."
This reverts commit 84e8cb419ba95a53ae4d2a1c9f4bb60d55dfc5f5.
Diffstat (limited to 'html.c')
-rw-r--r--html.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/html.c b/html.c
index 8f3fb06..0fe4ad8 100644
--- a/html.c
+++ b/html.c
@@ -486,9 +486,6 @@ xs_str *html_top_controls(snac *snac, xs_str *s)
486 "<p><input type=\"checkbox\" name=\"bot\" id=\"bot\" %s>\n" 486 "<p><input type=\"checkbox\" name=\"bot\" id=\"bot\" %s>\n"
487 "<label for=\"bot\">%s</label></p>\n" 487 "<label for=\"bot\">%s</label></p>\n"
488 488
489 "<p><input type=\"checkbox\" name=\"hide_followers_only\" id=\"hide_followers_only\" %s>\n"
490 "<label for=\"hide_followers_only\">%s</label></p>\n"
491
492 "<p>%s:<br>\n" 489 "<p>%s:<br>\n"
493 "<input type=\"password\" name=\"passwd1\" value=\"\"></p>\n" 490 "<input type=\"password\" name=\"passwd1\" value=\"\"></p>\n"
494 491
@@ -544,8 +541,6 @@ xs_str *html_top_controls(snac *snac, xs_str *s)
544 xs *es5 = encode_html(telegram_chat_id); 541 xs *es5 = encode_html(telegram_chat_id);
545 xs *es6 = encode_html(purge_days); 542 xs *es6 = encode_html(purge_days);
546 543
547 const char *hfo = xs_dict_get(snac->config, "hide_followers_only");
548
549 xs *s1 = xs_fmt(_tmpl, 544 xs *s1 = xs_fmt(_tmpl,
550 L("New Post..."), 545 L("New Post..."),
551 snac->actor, 546 snac->actor,
@@ -595,8 +590,6 @@ xs_str *html_top_controls(snac *snac, xs_str *s)
595 L("Drop direct messages from people you don't follow"), 590 L("Drop direct messages from people you don't follow"),
596 xs_type(bot) == XSTYPE_TRUE ? "checked" : "", 591 xs_type(bot) == XSTYPE_TRUE ? "checked" : "",
597 L("This account is a bot"), 592 L("This account is a bot"),
598 xs_type(hfo) == XSTYPE_TRUE ? "checked" : "",
599 L("Hide posts for followers only (and not for you)"),
600 L("New password"), 593 L("New password"),
601 L("Repeat new password"), 594 L("Repeat new password"),
602 L("Update user info") 595 L("Update user info")
@@ -2299,10 +2292,6 @@ int html_post_handler(const xs_dict *req, const char *q_path,
2299 snac.config = xs_dict_set(snac.config, "bot", xs_stock_true); 2292 snac.config = xs_dict_set(snac.config, "bot", xs_stock_true);
2300 else 2293 else
2301 snac.config = xs_dict_set(snac.config, "bot", xs_stock_false); 2294 snac.config = xs_dict_set(snac.config, "bot", xs_stock_false);
2302 if ((v = xs_dict_get(p_vars, "hide_followers_only")) != NULL && strcmp(v, "on") == 0)
2303 snac.config = xs_dict_set(snac.config, "hide_followers_only", xs_stock_true);
2304 else
2305 snac.config = xs_dict_set(snac.config, "hide_followers_only", xs_stock_false);
2306 2295
2307 /* avatar upload */ 2296 /* avatar upload */
2308 xs_list *avatar_file = xs_dict_get(p_vars, "avatar_file"); 2297 xs_list *avatar_file = xs_dict_get(p_vars, "avatar_file");