diff options
author | Norwin | 2022-01-13 17:13:08 +0100 |
---|---|---|
committer | GitHub | 2022-01-14 00:13:08 +0800 |
commit | e4120bbc899810f1c98da736ef80fcce11d9ca83 (patch) | |
tree | 4584d8dd08acc6273c4705f75666dd0049348db1 | |
parent | 37abfcaf8a012076901a8847f273488e5b038031 (diff) |
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).
-rw-r--r-- | models/issue_comment.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go index 4c5b77ff8..cd24b655d 100644 --- a/models/issue_comment.go +++ b/models/issue_comment.go @@ -762,13 +762,12 @@ func updateCommentInfos(e *xorm.Session, opts *CreateCommentOptions, comment *Co } } fallthrough - case CommentTypeReview: - fallthrough case CommentTypeComment: if _, err = e.Exec("UPDATE `issue` SET num_comments=num_comments+1 WHERE id=?", opts.Issue.ID); err != nil { return err } - + fallthrough + case CommentTypeReview: // Check attachments attachments, err := getAttachmentsByUUIDs(e, opts.Attachments) if err != nil { |