Also add the 'Sensitive content' checkbox to replies.

This commit is contained in:
default 2022-11-16 12:16:30 +01:00
parent a06930f4da
commit 0739b9ff59
2 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,7 @@ A simple, minimalistic ActivityPub instance
- Tested interoperability with related software
- No database needed
- Totally JavaScript-free
- No cookies either
- Not much bullshit
# About

2
html.c
View File

@ -449,6 +449,7 @@ d_char *html_entry_controls(snac *snac, d_char *os, char *msg, int num)
"<textarea class=\"snac-textarea\" name=\"content\" "
"rows=\"4\" wrap=\"virtual\" required=\"required\">%s</textarea>\n"
"<input type=\"hidden\" name=\"in_reply_to\" value=\"%s\">\n"
"<p><input type=\"checkbox\" name=\"sensitive\"> %s\n"
"<p><input type=\"file\" name=\"attach\">\n"
"<p><input type=\"submit\" class=\"button\" value=\"%s\">\n"
"</form><p></div>\n"
@ -460,6 +461,7 @@ d_char *html_entry_controls(snac *snac, d_char *os, char *msg, int num)
snac->actor, md5,
ct,
id,
L("Sensitive content"),
L("Post")
);