fix: allow backwards compatibility with older threads
This commit is contained in:
parent
e4d429b642
commit
be9380ba20
@ -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…
x
Reference in New Issue
Block a user