Minor tweak.

This commit is contained in:
default 2024-09-06 10:53:01 +02:00
parent 2ec86d363e
commit d515126797

8
html.c
View File

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