From ac69c3a59deef7faaa1c5f02621dfaac39e63aa0 Mon Sep 17 00:00:00 2001 From: httpjamesm Date: Thu, 25 Jul 2024 10:14:06 -0700 Subject: [PATCH] fix: override theme in posthome --- src/routes/home.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/home.go b/src/routes/home.go index 176c2a3..78202e1 100644 --- a/src/routes/home.go +++ b/src/routes/home.go @@ -71,8 +71,10 @@ func PostHome(c *gin.Context) { translated := translateUrl(body.URL) if translated == "" { + theme := utils.GetThemeFromEnv() c.HTML(400, "home.html", gin.H{ "errorMessage": "Invalid stack overflow/exchange URL", + "theme": theme, }) return }