aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-09-06 10:51:30 +0200
committerdefault <nobody@localhost>2024-09-06 10:51:30 +0200
commit2ec86d363e2cf7369231e4581a29831876ca1343 (patch)
tree968d96a844786d3cf65878e173b0e2a0540252ca
parentac0c7bc2edc5d08f9a6bba006a1d5bfe42e8a15a (diff)
Hiding a draft deletes it.
-rw-r--r--html.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/html.c b/html.c
index d3c3245..c89163f 100644
--- 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) { /** **/