Add support for invalidating comments

Signed-off-by: Jonas Franz <info@jonasfranz.software>
This commit is contained in:
Jonas Franz
2018-05-13 13:24:19 +02:00
parent 066086c390
commit 7986d6ed22
7 changed files with 154 additions and 28 deletions

View File

@@ -63,14 +63,11 @@ func CreateCodeComment(ctx *context.Context, form auth.CodeCommentForm) {
}
}
}
//FIXME check if line, commit and treepath exist
var err error
comment, err = models.CreateCodeComment(
comment, err := models.CreateCodeComment(
ctx.User,
issue.Repo,
issue,
form.CommitSHA,
form.Content,
form.TreePath,
signedLine,