fix: override theme in posthome

This commit is contained in:
httpjamesm 2024-07-25 10:14:06 -07:00
parent 6b9afed2dd
commit ac69c3a59d
No known key found for this signature in database

View file

@ -71,8 +71,10 @@ func PostHome(c *gin.Context) {
translated := translateUrl(body.URL) translated := translateUrl(body.URL)
if translated == "" { if translated == "" {
theme := utils.GetThemeFromEnv()
c.HTML(400, "home.html", gin.H{ c.HTML(400, "home.html", gin.H{
"errorMessage": "Invalid stack overflow/exchange URL", "errorMessage": "Invalid stack overflow/exchange URL",
"theme": theme,
}) })
return return
} }