mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-04-19 21:39:24 +00:00
fix: override theme in posthome
This commit is contained in:
parent
6b9afed2dd
commit
ac69c3a59d
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue