From a96b5b1cd20801b79455835db995d8fa10509215 Mon Sep 17 00:00:00 2001 From: Ryan Stafford Date: Tue, 8 Aug 2023 18:03:03 -0400 Subject: [PATCH] fix dark default --- routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes.go b/routes.go index 0503178..d72d653 100644 --- a/routes.go +++ b/routes.go @@ -263,7 +263,7 @@ func Initialize(Host string, r *http.Request) (State, error) { if dark := getCookie(r, "Dark"); dark != "" { state.Dark = dark != "0" } else { - state.Dark = os.Getenv("DARK") != "0" + state.Dark = os.Getenv("DARK") != "" } state.ShowNSFW = getCookie(r, "ShowNSFW") != "" state.HideInstanceNames = getCookie(r, "HideInstanceNames") != ""