summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo/issue_comment.go
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2016-11-07 17:30:04 +0100
committerSandro Santilli <strk@kbt.io>2016-11-07 17:30:04 +0100
commit60c82a87805821ad6eaf5aeb58a3a266b56a30ff (patch)
treeddc3675e4133284dbe7fa1b2bbd10ed7d38ff6fc /routers/api/v1/repo/issue_comment.go
parentf6a11e0de1ab950b42679d6be9dc0f3ac86c3399 (diff)
downloadgitea-60c82a87805821ad6eaf5aeb58a3a266b56a30ff.tar.gz
gitea-60c82a87805821ad6eaf5aeb58a3a266b56a30ff.zip
More...
Diffstat (limited to 'routers/api/v1/repo/issue_comment.go')
-rw-r--r--routers/api/v1/repo/issue_comment.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/issue_comment.go b/routers/api/v1/repo/issue_comment.go
index 28751008da..11e236144c 100644
--- a/routers/api/v1/repo/issue_comment.go
+++ b/routers/api/v1/repo/issue_comment.go
@@ -68,7 +68,7 @@ func EditIssueComment(ctx *context.APIContext, form api.EditIssueCommentOption)
if !ctx.IsSigned || (ctx.User.ID != comment.PosterID && !ctx.Repo.IsAdmin()) {
ctx.Status(403)
return
- } else if comment.Type != models.COMMENT_TYPE_COMMENT {
+ } else if comment.Type != models.CommentTypeComment {
ctx.Status(204)
return
}