diff options
author | default <nobody@localhost> | 2024-08-31 08:22:30 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2024-08-31 08:22:30 +0200 |
commit | 36e98b890166d900ea630b97c520a0f189d96bc0 (patch) | |
tree | 358be38d8a170d215d9a454da51bb96fffc6514f /html.c | |
parent | 5e5abd76a0e19facf191d9663ab89053d43d8df8 (diff) |
New 'hide_delete_post_button' server directive.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1367,8 +1367,11 @@ xs_html *html_entry_controls(snac *snac, const char *actor, L("Block any activity from this user forever"))); } + if (!xs_is_true(xs_dict_get(srv_config, "hide_delete_post_button"))) + xs_html_add(form, + html_button("delete", L("Delete"), L("Delete this post"))); + xs_html_add(form, - html_button("delete", L("Delete"), L("Delete this post")), html_button("hide", L("Hide"), L("Hide this post and its children"))); const char *prev_src = xs_dict_get(msg, "sourceContent"); |