commit 2ec86d363e2cf7369231e4581a29831876ca1343
parent ac0c7bc2edc5d08f9a6bba006a1d5bfe42e8a15a
Author: default <nobody@localhost>
Date: Fri, 6 Sep 2024 10:51:30 +0200
Hiding a draft deletes it.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/html.c b/html.c
@@ -3336,6 +3336,9 @@ int html_post_handler(const xs_dict *req, const char *q_path,
else
if (strcmp(action, L("Hide")) == 0) { /** **/
hide(&snac, id);
+
+ /* also delete from the draft list */
+ draft_del(&snac, id);
}
else
if (strcmp(action, L("Limit")) == 0) { /** **/