diff options
| author | 2024-09-06 10:53:01 +0200 | |
|---|---|---|
| committer | 2024-09-06 10:53:01 +0200 | |
| commit | d515126797b616dee3c5618688c72b352944e55e (patch) | |
| tree | ac862d0745fc1795f1c64dfdd55f0741cce55649 | |
| parent | Hiding a draft deletes it. (diff) | |
| download | snac2-d515126797b616dee3c5618688c72b352944e55e.tar.gz snac2-d515126797b616dee3c5618688c72b352944e55e.tar.xz snac2-d515126797b616dee3c5618688c72b352944e55e.zip | |
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, | |||
| 3335 | } | 3335 | } |
| 3336 | else | 3336 | else |
| 3337 | if (strcmp(action, L("Hide")) == 0) { /** **/ | 3337 | if (strcmp(action, L("Hide")) == 0) { /** **/ |
| 3338 | hide(&snac, id); | 3338 | if (is_draft(&snac, id)) |
| 3339 | 3339 | draft_del(&snac, id); | |
| 3340 | /* also delete from the draft list */ | 3340 | else |
| 3341 | draft_del(&snac, id); | 3341 | hide(&snac, id); |
| 3342 | } | 3342 | } |
| 3343 | else | 3343 | else |
| 3344 | if (strcmp(action, L("Limit")) == 0) { /** **/ | 3344 | if (strcmp(action, L("Limit")) == 0) { /** **/ |