mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
New checkbox in html_note() for marking a post as a draft.
This commit is contained in:
parent
acb3f92ef4
commit
97c4af001b
8
html.c
8
html.c
@ -357,6 +357,14 @@ xs_html *html_note(snac *user, const char *summary,
|
|||||||
xs_html_attr("name", "in_reply_to"),
|
xs_html_attr("name", "in_reply_to"),
|
||||||
xs_html_attr("placeholder", "Optional URL to reply to")));
|
xs_html_attr("placeholder", "Optional URL to reply to")));
|
||||||
|
|
||||||
|
xs_html_add(form,
|
||||||
|
xs_html_tag("p", NULL),
|
||||||
|
xs_html_attr("title", L("Don't send, but store as a draft")),
|
||||||
|
xs_html_text(L("Draft:")),
|
||||||
|
xs_html_sctag("input",
|
||||||
|
xs_html_attr("type", "checkbox"),
|
||||||
|
xs_html_attr("name", "is_draft")));
|
||||||
|
|
||||||
if (edit_id)
|
if (edit_id)
|
||||||
xs_html_add(form,
|
xs_html_add(form,
|
||||||
xs_html_sctag("input",
|
xs_html_sctag("input",
|
||||||
|
2
snac.h
2
snac.h
@ -1,7 +1,7 @@
|
|||||||
/* snac - A simple, minimalistic ActivityPub instance */
|
/* snac - A simple, minimalistic ActivityPub instance */
|
||||||
/* copyright (c) 2022 - 2024 grunfink et al. / MIT license */
|
/* copyright (c) 2022 - 2024 grunfink et al. / MIT license */
|
||||||
|
|
||||||
#define VERSION "2.58"
|
#define VERSION "2.59-dev"
|
||||||
|
|
||||||
#define USER_AGENT "snac/" VERSION
|
#define USER_AGENT "snac/" VERSION
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user