diff options
| author | default <nobody@localhost> | 2024-09-06 10:53:01 +0200 |
|---|---|---|
| committer | default <nobody@localhost> | 2024-09-06 10:53:01 +0200 |
| commit | d515126797b616dee3c5618688c72b352944e55e (patch) | |
| tree | ac862d0745fc1795f1c64dfdd55f0741cce55649 | |
| parent | 2ec86d363e2cf7369231e4581a29831876ca1343 (diff) | |
Minor tweak.
| -rw-r--r-- | html.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3335,10 +3335,10 @@ 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); + if (is_draft(&snac, id)) + draft_del(&snac, id); + else + hide(&snac, id); } else if (strcmp(action, L("Limit")) == 0) { /** **/ |