Fix the Unlisted checkbox always being checked

Fixed a bug where the unlisted checkbox was always checked when
ending a post.
This commit is contained in:
Robin Malley 2021-01-26 01:20:40 +00:00
parent 1f5b113daa
commit 4a99441008
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ local function edit_get(req)
story = story_id,
err = "",
tags = tags_txt,
unlisted = unlisted
unlisted = unlisted == 1
}
http_response(req,200,ret)
end