fix: allow backwards compatibility with older threads

This commit is contained in:
httpjamesm 2022-12-29 14:47:07 -05:00
parent e4d429b642
commit be9380ba20

View File

@ -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),