commit d515126

default  ·  2024-09-06 08:53:01 +0000 UTC
parent 2ec86d3
Minor tweak.
1 files changed,  +4, -4
M html.c
M html.c
+4, -4
 1@@ -3335,10 +3335,10 @@ int html_post_handler(const xs_dict *req, const char *q_path,
 2         }
 3         else
 4         if (strcmp(action, L("Hide")) == 0) { /** **/
 5-            hide(&snac, id);
 6-
 7-            /* also delete from the draft list */
 8-            draft_del(&snac, id);
 9+            if (is_draft(&snac, id))
10+                draft_del(&snac, id);
11+            else
12+                hide(&snac, id);
13         }
14         else
15         if (strcmp(action, L("Limit")) == 0) { /** **/