mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 05:15:04 +00:00
Hiding a draft deletes it.
This commit is contained in:
parent
ac0c7bc2ed
commit
2ec86d363e
1 changed files with 3 additions and 0 deletions
3
html.c
3
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) { /** **/
|
||||||
|
|
Loading…
Reference in a new issue