diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-12-01 10:44:39 +0800 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-11-30 21:44:39 -0500 |
commit | 2011a5b8183fe227f9f57f861dbe42abbd7abf42 (patch) | |
tree | cc34a5a20b3d8851f4dd139ce3a8356817883e1b /models/review.go | |
parent | 7c6f2e27becb7ab43fe266d2882a0d80977c2ef7 (diff) | |
download | gitea-2011a5b8183fe227f9f57f861dbe42abbd7abf42.tar.gz gitea-2011a5b8183fe227f9f57f861dbe42abbd7abf42.zip |
Extract createComment (#9125)
* Extract createComment
* fix lint
* fix lint
Diffstat (limited to 'models/review.go')
-rw-r--r-- | models/review.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/models/review.go b/models/review.go index fb989b2b35..715aaeb43a 100644 --- a/models/review.go +++ b/models/review.go @@ -291,14 +291,13 @@ func SubmitReview(doer *User, issue *Issue, reviewType ReviewType, content strin } } - comm, err := createComment(sess, &CreateCommentOptions{ + comm, err := createCommentWithNoAction(sess, &CreateCommentOptions{ Type: CommentTypeReview, Doer: doer, Content: review.Content, Issue: issue, Repo: issue.Repo, ReviewID: review.ID, - NoAction: true, }) if err != nil || comm == nil { return nil, nil, err |