summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2024-09-06 09:33:59 +0200
committerGravatar default2024-09-06 09:33:59 +0200
commit97c4af001b800c6195076ad50eb969e20f484262 (patch)
tree334cf98f74720e5378aa653bd1888a5bb1b81f56
parentVersion 2.58 RELEASED. (diff)
downloadsnac2-97c4af001b800c6195076ad50eb969e20f484262.tar.gz
snac2-97c4af001b800c6195076ad50eb969e20f484262.tar.xz
snac2-97c4af001b800c6195076ad50eb969e20f484262.zip
New checkbox in html_note() for marking a post as a draft.
-rw-r--r--html.c8
-rw-r--r--snac.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/html.c b/html.c
index 0b13602..ad82fc6 100644
--- a/html.c
+++ b/html.c
@@ -357,6 +357,14 @@ xs_html *html_note(snac *user, const char *summary,
357 xs_html_attr("name", "in_reply_to"), 357 xs_html_attr("name", "in_reply_to"),
358 xs_html_attr("placeholder", "Optional URL to reply to"))); 358 xs_html_attr("placeholder", "Optional URL to reply to")));
359 359
360 xs_html_add(form,
361 xs_html_tag("p", NULL),
362 xs_html_attr("title", L("Don't send, but store as a draft")),
363 xs_html_text(L("Draft:")),
364 xs_html_sctag("input",
365 xs_html_attr("type", "checkbox"),
366 xs_html_attr("name", "is_draft")));
367
360 if (edit_id) 368 if (edit_id)
361 xs_html_add(form, 369 xs_html_add(form,
362 xs_html_sctag("input", 370 xs_html_sctag("input",
diff --git a/snac.h b/snac.h
index 4767109..a7c2918 100644
--- a/snac.h
+++ b/snac.h
@@ -1,7 +1,7 @@
1/* snac - A simple, minimalistic ActivityPub instance */ 1/* snac - A simple, minimalistic ActivityPub instance */
2/* copyright (c) 2022 - 2024 grunfink et al. / MIT license */ 2/* copyright (c) 2022 - 2024 grunfink et al. / MIT license */
3 3
4#define VERSION "2.58" 4#define VERSION "2.59-dev"
5 5
6#define USER_AGENT "snac/" VERSION 6#define USER_AGENT "snac/" VERSION
7 7