commit 2ec86d3
default
·
2024-09-06 08:51:30 +0000 UTC
parent ac0c7bc
Hiding a draft deletes it.
1 files changed,
+3,
-0
M
html.c
M
html.c
+3,
-0
1@@ -3336,6 +3336,9 @@ int html_post_handler(const xs_dict *req, const char *q_path,
2 else
3 if (strcmp(action, L("Hide")) == 0) { /** **/
4 hide(&snac, id);
5+
6+ /* also delete from the draft list */
7+ draft_del(&snac, id);
8 }
9 else
10 if (strcmp(action, L("Limit")) == 0) { /** **/