commit 36e98b8
default
·
2024-08-31 06:22:30 +0000 UTC
parent 5e5abd7
New 'hide_delete_post_button' server directive.
2 files changed,
+7,
-1
M
html.c
+3,
-0
1@@ -227,6 +227,9 @@ set, it defaults to "https". If you run
2 as part of a hidden network like Tor or I2P that doesn't have a TLS /
3 Certificate infrastructure, you need to set it to "http". Don't change it
4 unless you know what you are doing.
5+.It Ic hide_delete_post_button
6+If set to true, the button to delete a post is not shown. It's not very
7+useful and somewhat clutters the already crowded button space.
8 .El
9 .Pp
10 You must restart the server to make effective these changes.
M
html.c
+4,
-1
1@@ -1367,8 +1367,11 @@ xs_html *html_entry_controls(snac *snac, const char *actor,
2 L("Block any activity from this user forever")));
3 }
4
5+ if (!xs_is_true(xs_dict_get(srv_config, "hide_delete_post_button")))
6+ xs_html_add(form,
7+ html_button("delete", L("Delete"), L("Delete this post")));
8+
9 xs_html_add(form,
10- html_button("delete", L("Delete"), L("Delete this post")),
11 html_button("hide", L("Hide"), L("Hide this post and its children")));
12
13 const char *prev_src = xs_dict_get(msg, "sourceContent");