diff options
| author | 2022-11-16 12:16:30 +0100 | |
|---|---|---|
| committer | 2022-11-16 12:16:30 +0100 | |
| commit | 0739b9ff596cc7df395e139affcbfd042700dc2d (patch) | |
| tree | d89f9bae3f2e3b1d73ac0901b9c00f3c5ba69a0a | |
| parent | Posts can be marked as 'sensitive content' (not yet for replies). (diff) | |
| download | penes-snac2-0739b9ff596cc7df395e139affcbfd042700dc2d.tar.gz penes-snac2-0739b9ff596cc7df395e139affcbfd042700dc2d.tar.xz penes-snac2-0739b9ff596cc7df395e139affcbfd042700dc2d.zip | |
Also add the 'Sensitive content' checkbox to replies.
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | html.c | 2 |
2 files changed, 3 insertions, 0 deletions
| @@ -11,6 +11,7 @@ A simple, minimalistic ActivityPub instance | |||
| 11 | - Tested interoperability with related software | 11 | - Tested interoperability with related software |
| 12 | - No database needed | 12 | - No database needed |
| 13 | - Totally JavaScript-free | 13 | - Totally JavaScript-free |
| 14 | - No cookies either | ||
| 14 | - Not much bullshit | 15 | - Not much bullshit |
| 15 | 16 | ||
| 16 | # About | 17 | # About |
| @@ -449,6 +449,7 @@ d_char *html_entry_controls(snac *snac, d_char *os, char *msg, int num) | |||
| 449 | "<textarea class=\"snac-textarea\" name=\"content\" " | 449 | "<textarea class=\"snac-textarea\" name=\"content\" " |
| 450 | "rows=\"4\" wrap=\"virtual\" required=\"required\">%s</textarea>\n" | 450 | "rows=\"4\" wrap=\"virtual\" required=\"required\">%s</textarea>\n" |
| 451 | "<input type=\"hidden\" name=\"in_reply_to\" value=\"%s\">\n" | 451 | "<input type=\"hidden\" name=\"in_reply_to\" value=\"%s\">\n" |
| 452 | "<p><input type=\"checkbox\" name=\"sensitive\"> %s\n" | ||
| 452 | "<p><input type=\"file\" name=\"attach\">\n" | 453 | "<p><input type=\"file\" name=\"attach\">\n" |
| 453 | "<p><input type=\"submit\" class=\"button\" value=\"%s\">\n" | 454 | "<p><input type=\"submit\" class=\"button\" value=\"%s\">\n" |
| 454 | "</form><p></div>\n" | 455 | "</form><p></div>\n" |
| @@ -460,6 +461,7 @@ d_char *html_entry_controls(snac *snac, d_char *os, char *msg, int num) | |||
| 460 | snac->actor, md5, | 461 | snac->actor, md5, |
| 461 | ct, | 462 | ct, |
| 462 | id, | 463 | id, |
| 464 | L("Sensitive content"), | ||
| 463 | L("Post") | 465 | L("Post") |
| 464 | ); | 466 | ); |
| 465 | 467 | ||