mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-10 03:50:38 +03:00
Also add the 'Sensitive content' checkbox to replies.
This commit is contained in:
parent
a06930f4da
commit
0739b9ff59
@ -11,6 +11,7 @@ A simple, minimalistic ActivityPub instance
|
|||||||
- Tested interoperability with related software
|
- Tested interoperability with related software
|
||||||
- No database needed
|
- No database needed
|
||||||
- Totally JavaScript-free
|
- Totally JavaScript-free
|
||||||
|
- No cookies either
|
||||||
- Not much bullshit
|
- Not much bullshit
|
||||||
|
|
||||||
# About
|
# About
|
||||||
|
2
html.c
2
html.c
@ -449,6 +449,7 @@ d_char *html_entry_controls(snac *snac, d_char *os, char *msg, int num)
|
|||||||
"<textarea class=\"snac-textarea\" name=\"content\" "
|
"<textarea class=\"snac-textarea\" name=\"content\" "
|
||||||
"rows=\"4\" wrap=\"virtual\" required=\"required\">%s</textarea>\n"
|
"rows=\"4\" wrap=\"virtual\" required=\"required\">%s</textarea>\n"
|
||||||
"<input type=\"hidden\" name=\"in_reply_to\" value=\"%s\">\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=\"file\" name=\"attach\">\n"
|
||||||
"<p><input type=\"submit\" class=\"button\" value=\"%s\">\n"
|
"<p><input type=\"submit\" class=\"button\" value=\"%s\">\n"
|
||||||
"</form><p></div>\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,
|
snac->actor, md5,
|
||||||
ct,
|
ct,
|
||||||
id,
|
id,
|
||||||
|
L("Sensitive content"),
|
||||||
L("Post")
|
L("Post")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user