summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-15 02:48:05 +0800
committerUnknwon <u@gogs.io>2015-08-15 02:48:05 +0800
commit30b428bf0eabb9f6cd73894d776502e1b7e351b7 (patch)
treec7e51f33011d5813374f9d90c6e4c5fef3f79cbb /cmd
parente4d6b5d488981d78417e9c85eda8226ebb8b7e37 (diff)
downloadgitea-30b428bf0eabb9f6cd73894d776502e1b7e351b7.tar.gz
gitea-30b428bf0eabb9f6cd73894d776502e1b7e351b7.zip
#1419: 500 when visit a issue with issue/comments of deleted user
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go2
1 files changed, 1 insertions, 1 deletions
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() {