From d515126797b616dee3c5618688c72b352944e55e Mon Sep 17 00:00:00 2001 From: default Date: Fri, 6 Sep 2024 10:53:01 +0200 Subject: [PATCH] Minor tweak. --- html.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/html.c b/html.c index c89163f..06c5ff1 100644 --- a/html.c +++ b/html.c @@ -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) { /** **/