diff options
Diffstat (limited to 'models/review.go')
-rw-r--r-- | models/review.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/models/review.go b/models/review.go index 58660b2e3d..89a26d6fdb 100644 --- a/models/review.go +++ b/models/review.go @@ -129,13 +129,17 @@ func (r *Review) publish(e *xorm.Engine) error { go func(en *xorm.Engine, review *Review, comm *Comment) { sess := en.NewSession() defer sess.Close() - if err := sendCreateCommentAction(sess, &CreateCommentOptions{ + opts := &CreateCommentOptions{ Doer: comm.Poster, Issue: review.Issue, Repo: review.Issue.Repo, Type: comm.Type, Content: comm.Content, - }, comm); err != nil { + } + if err := updateCommentInfos(sess, opts, comm); err != nil { + log.Warn("updateCommentInfos: %v", err) + } + if err := sendCreateCommentAction(sess, opts, comm); err != nil { log.Warn("sendCreateCommentAction: %v", err) } }(e, r, comment) |