diff options
| -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) { /** **/ |