diff options
| author | default <nobody@localhost> | 2024-09-06 10:51:30 +0200 |
|---|---|---|
| committer | default <nobody@localhost> | 2024-09-06 10:51:30 +0200 |
| commit | 2ec86d363e2cf7369231e4581a29831876ca1343 (patch) | |
| tree | 968d96a844786d3cf65878e173b0e2a0540252ca | |
| parent | ac0c7bc2edc5d08f9a6bba006a1d5bfe42e8a15a (diff) | |
Hiding a draft deletes it.
| -rw-r--r-- | html.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) { /** **/ |