浏览代码

Hiding a draft deletes it.

default 2 年之前
父节点
当前提交
2ec86d363e
共有 1 个文件被更改,包括 3 次插入 和 0 次删除
  1. 3 0
      html.c

+ 3 - 0
html.c

@@ -3336,6 +3336,9 @@ int html_post_handler(const xs_dict *req, const char *q_path,
         else
         else
         if (strcmp(action, L("Hide")) == 0) { /** **/
         if (strcmp(action, L("Hide")) == 0) { /** **/
             hide(&snac, id);
             hide(&snac, id);
+
+            /* also delete from the draft list */
+            draft_del(&snac, id);
         }
         }
         else
         else
         if (strcmp(action, L("Limit")) == 0) { /** **/
         if (strcmp(action, L("Limit")) == 0) { /** **/