mirror of https://github.com/go-gitea/gitea.git
we don't want reviews to count towards comments, as this needs changes in other components as well (eg repo stats cron job, etc).
This commit is contained in:
parent
37abfcaf8a
commit
e4120bbc89
|
@ -762,13 +762,12 @@ func updateCommentInfos(e *xorm.Session, opts *CreateCommentOptions, comment *Co
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fallthrough
|
fallthrough
|
||||||
case CommentTypeReview:
|
|
||||||
fallthrough
|
|
||||||
case CommentTypeComment:
|
case CommentTypeComment:
|
||||||
if _, err = e.Exec("UPDATE `issue` SET num_comments=num_comments+1 WHERE id=?", opts.Issue.ID); err != nil {
|
if _, err = e.Exec("UPDATE `issue` SET num_comments=num_comments+1 WHERE id=?", opts.Issue.ID); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
fallthrough
|
||||||
|
case CommentTypeReview:
|
||||||
// Check attachments
|
// Check attachments
|
||||||
attachments, err := getAttachmentsByUUIDs(e, opts.Attachments)
|
attachments, err := getAttachmentsByUUIDs(e, opts.Attachments)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue