mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-05-04 20:30:38 +00:00
fix: allow backwards compatibility with older threads
This commit is contained in:
parent
e4d429b642
commit
be9380ba20
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ func ViewQuestion(c *gin.Context) {
|
||||||
client := resty.New()
|
client := resty.New()
|
||||||
|
|
||||||
questionId := c.Param("id")
|
questionId := c.Param("id")
|
||||||
if len(questionId) < 8 {
|
if len(questionId) < 5 {
|
||||||
c.HTML(400, "home.html", gin.H{
|
c.HTML(400, "home.html", gin.H{
|
||||||
"errorMessage": "Invalid question ID",
|
"errorMessage": "Invalid question ID",
|
||||||
"theme": c.MustGet("theme").(string),
|
"theme": c.MustGet("theme").(string),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue