mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-29 07:53:37 +00:00
Revert "Added web interface for hide_followers_only."
This reverts commit 84e8cb419b
.
This commit is contained in:
parent
84e8cb419b
commit
cdb201cc04
1 changed files with 0 additions and 11 deletions
11
html.c
11
html.c
|
@ -486,9 +486,6 @@ xs_str *html_top_controls(snac *snac, xs_str *s)
|
||||||
"<p><input type=\"checkbox\" name=\"bot\" id=\"bot\" %s>\n"
|
"<p><input type=\"checkbox\" name=\"bot\" id=\"bot\" %s>\n"
|
||||||
"<label for=\"bot\">%s</label></p>\n"
|
"<label for=\"bot\">%s</label></p>\n"
|
||||||
|
|
||||||
"<p><input type=\"checkbox\" name=\"hide_followers_only\" id=\"hide_followers_only\" %s>\n"
|
|
||||||
"<label for=\"hide_followers_only\">%s</label></p>\n"
|
|
||||||
|
|
||||||
"<p>%s:<br>\n"
|
"<p>%s:<br>\n"
|
||||||
"<input type=\"password\" name=\"passwd1\" value=\"\"></p>\n"
|
"<input type=\"password\" name=\"passwd1\" value=\"\"></p>\n"
|
||||||
|
|
||||||
|
@ -544,8 +541,6 @@ xs_str *html_top_controls(snac *snac, xs_str *s)
|
||||||
xs *es5 = encode_html(telegram_chat_id);
|
xs *es5 = encode_html(telegram_chat_id);
|
||||||
xs *es6 = encode_html(purge_days);
|
xs *es6 = encode_html(purge_days);
|
||||||
|
|
||||||
const char *hfo = xs_dict_get(snac->config, "hide_followers_only");
|
|
||||||
|
|
||||||
xs *s1 = xs_fmt(_tmpl,
|
xs *s1 = xs_fmt(_tmpl,
|
||||||
L("New Post..."),
|
L("New Post..."),
|
||||||
snac->actor,
|
snac->actor,
|
||||||
|
@ -595,8 +590,6 @@ xs_str *html_top_controls(snac *snac, xs_str *s)
|
||||||
L("Drop direct messages from people you don't follow"),
|
L("Drop direct messages from people you don't follow"),
|
||||||
xs_type(bot) == XSTYPE_TRUE ? "checked" : "",
|
xs_type(bot) == XSTYPE_TRUE ? "checked" : "",
|
||||||
L("This account is a bot"),
|
L("This account is a bot"),
|
||||||
xs_type(hfo) == XSTYPE_TRUE ? "checked" : "",
|
|
||||||
L("Hide posts for followers only (and not for you)"),
|
|
||||||
L("New password"),
|
L("New password"),
|
||||||
L("Repeat new password"),
|
L("Repeat new password"),
|
||||||
L("Update user info")
|
L("Update user info")
|
||||||
|
@ -2299,10 +2292,6 @@ int html_post_handler(const xs_dict *req, const char *q_path,
|
||||||
snac.config = xs_dict_set(snac.config, "bot", xs_stock_true);
|
snac.config = xs_dict_set(snac.config, "bot", xs_stock_true);
|
||||||
else
|
else
|
||||||
snac.config = xs_dict_set(snac.config, "bot", xs_stock_false);
|
snac.config = xs_dict_set(snac.config, "bot", xs_stock_false);
|
||||||
if ((v = xs_dict_get(p_vars, "hide_followers_only")) != NULL && strcmp(v, "on") == 0)
|
|
||||||
snac.config = xs_dict_set(snac.config, "hide_followers_only", xs_stock_true);
|
|
||||||
else
|
|
||||||
snac.config = xs_dict_set(snac.config, "hide_followers_only", xs_stock_false);
|
|
||||||
|
|
||||||
/* avatar upload */
|
/* avatar upload */
|
||||||
xs_list *avatar_file = xs_dict_get(p_vars, "avatar_file");
|
xs_list *avatar_file = xs_dict_get(p_vars, "avatar_file");
|
||||||
|
|
Loading…
Reference in a new issue