From 4a994410088fce6995cf20d247491d10b25e1add Mon Sep 17 00:00:00 2001 From: Robin Malley Date: Tue, 26 Jan 2021 01:20:40 +0000 Subject: [PATCH] Fix the Unlisted checkbox always being checked Fixed a bug where the unlisted checkbox was always checked when ending a post. --- src/lua/endpoints/edit_get.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/endpoints/edit_get.lua b/src/lua/endpoints/edit_get.lua index fdca472..1dda582 100644 --- a/src/lua/endpoints/edit_get.lua +++ b/src/lua/endpoints/edit_get.lua @@ -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