mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-05-14 14:02:51 +00:00
fix: remove length requirement
This commit is contained in:
parent
17a8c6b1e1
commit
f2b369b2c6
1 changed files with 0 additions and 9 deletions
|
@ -25,15 +25,6 @@ func ViewQuestion(c *gin.Context) {
|
|||
client := resty.New()
|
||||
|
||||
questionId := c.Param("id")
|
||||
if len(questionId) < 5 {
|
||||
c.HTML(400, "home.html", gin.H{
|
||||
"errorMessage": "Invalid question ID",
|
||||
"theme": c.MustGet("theme").(string),
|
||||
"version": config.Version,
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
if _, err := strconv.Atoi(questionId); err != nil {
|
||||
c.HTML(400, "home.html", gin.H{
|
||||
"errorMessage": "Invalid question ID",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue