mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2024-12-06 19:16:43 +01:00
fix: override theme in posthome
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user