From be9380ba20aade4a4409132fe5845167649adfd7 Mon Sep 17 00:00:00 2001 From: httpjamesm Date: Thu, 29 Dec 2022 14:47:07 -0500 Subject: [PATCH] fix: allow backwards compatibility with older threads --- src/routes/question.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/question.go b/src/routes/question.go index c84eb65..9f9a034 100644 --- a/src/routes/question.go +++ b/src/routes/question.go @@ -25,7 +25,7 @@ func ViewQuestion(c *gin.Context) { client := resty.New() questionId := c.Param("id") - if len(questionId) < 8 { + if len(questionId) < 5 { c.HTML(400, "home.html", gin.H{ "errorMessage": "Invalid question ID", "theme": c.MustGet("theme").(string),