Skip to content

Commit e4120bb

Browse files
authored
fix regression from #16075 (#18261)
we don't want reviews to count towards comments, as this needs changes in other components as well (eg repo stats cron job, etc).
1 parent 37abfca commit e4120bb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

models/issue_comment.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -762,13 +762,12 @@ func updateCommentInfos(e *xorm.Session, opts *CreateCommentOptions, comment *Co
762762
}
763763
}
764764
fallthrough
765-
case CommentTypeReview:
766-
fallthrough
767765
case CommentTypeComment:
768766
if _, err = e.Exec("UPDATE `issue` SET num_comments=num_comments+1 WHERE id=?", opts.Issue.ID); err != nil {
769767
return err
770768
}
771-
769+
fallthrough
770+
case CommentTypeReview:
772771
// Check attachments
773772
attachments, err := getAttachmentsByUUIDs(e, opts.Attachments)
774773
if err != nil {

0 commit comments

Comments
 (0)