diff options
| author | 2022-11-16 12:16:30 +0100 | |
|---|---|---|
| committer | 2022-11-16 12:16:30 +0100 | |
| commit | 0739b9ff596cc7df395e139affcbfd042700dc2d (patch) | |
| tree | d89f9bae3f2e3b1d73ac0901b9c00f3c5ba69a0a /html.c | |
| parent | Posts can be marked as 'sensitive content' (not yet for replies). (diff) | |
| download | snac2-0739b9ff596cc7df395e139affcbfd042700dc2d.tar.gz snac2-0739b9ff596cc7df395e139affcbfd042700dc2d.tar.xz snac2-0739b9ff596cc7df395e139affcbfd042700dc2d.zip | |
Also add the 'Sensitive content' checkbox to replies.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -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 | ||