mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-04-20 22:09:15 +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)
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue