commit 97c4af0
default
·
2024-09-06 07:33:59 +0000 UTC
parent acb3f92
New checkbox in html_note() for marking a post as a draft.
M
html.c
+8,
-0
1@@ -357,6 +357,14 @@ xs_html *html_note(snac *user, const char *summary,
2 xs_html_attr("name", "in_reply_to"),
3 xs_html_attr("placeholder", "Optional URL to reply to")));
4
5+ xs_html_add(form,
6+ xs_html_tag("p", NULL),
7+ xs_html_attr("title", L("Don't send, but store as a draft")),
8+ xs_html_text(L("Draft:")),
9+ xs_html_sctag("input",
10+ xs_html_attr("type", "checkbox"),
11+ xs_html_attr("name", "is_draft")));
12+
13 if (edit_id)
14 xs_html_add(form,
15 xs_html_sctag("input",
M
snac.h
+1,
-1
1@@ -1,7 +1,7 @@
2 /* snac - A simple, minimalistic ActivityPub instance */
3 /* copyright (c) 2022 - 2024 grunfink et al. / MIT license */
4
5-#define VERSION "2.58"
6+#define VERSION "2.59-dev"
7
8 #define USER_AGENT "snac/" VERSION
9