From 30b428bf0eabb9f6cd73894d776502e1b7e351b7 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 15 Aug 2015 02:48:05 +0800 Subject: #1419: 500 when visit a issue with issue/comments of deleted user --- cmd/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/web.go b/cmd/web.go index a091c5c69d..c441e91966 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -453,12 +453,12 @@ func runWeb(ctx *cli.Context) { m.Combo("/new").Get(repo.NewIssue). Post(bindIgnErr(auth.CreateIssueForm{}), repo.NewIssuePost) + m.Combo("/:index/comments").Post(bindIgnErr(auth.CreateCommentForm{}), repo.NewComment) m.Group("/:index", func() { m.Post("", bindIgnErr(auth.CreateIssueForm{}), repo.UpdateIssue) m.Post("/label", repo.UpdateIssueLabel) m.Post("/milestone", repo.UpdateIssueMilestone) m.Post("/assignee", repo.UpdateIssueAssignee) - m.Combo("/comments").Post(bindIgnErr(auth.CreateCommentForm{}), repo.NewComment) }, reqRepoAdmin) }) m.Group("/labels", func() { -- cgit v1.2.3