From fd3edf51c9bf38f710d0fe670ce29e4ff2e2178b Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 11 Nov 2022 06:46:11 +0200 Subject: [PATCH] minor bool change --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 8ac084cc4..7889d49ee 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -770,7 +770,7 @@ def submit_post(v, sub=None): if embed and len(embed) > 1500: embed = None - ghost = (request.values.get("ghost") == "on") + ghost = bool(request.values.get("ghost")) if embed: embed = embed.strip()