diff options
author | Norwin <noerw@users.noreply.github.com> | 2022-01-13 17:50:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-14 00:50:43 +0800 |
commit | 696521b33bb3323b90f18d26e46b5124c5ee3426 (patch) | |
tree | 2c7bd860a399d01a8b1d5ed659c9cb2443f3a372 /models | |
parent | f635d60344b4ed1ac02287158cf9ea049b90b5b8 (diff) | |
download | gitea-696521b33bb3323b90f18d26e46b5124c5ee3426.tar.gz gitea-696521b33bb3323b90f18d26e46b5124c5ee3426.zip |
fix regression from #16075 (#18260)
we don't want reviews to count towards comments, as this needs changes
in other components as well (eg repo stats cron job, etc).
Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'models')
-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 9a6f4247b0..03a2a630de 100644 --- a/models/issue_comment.go +++ b/models/issue_comment.go @@ -835,13 +835,12 @@ func updateCommentInfos(ctx context.Context, opts *CreateCommentOptions, comment } } 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 := repo_model.GetAttachmentsByUUIDs(ctx, opts.Attachments) if err != nil { |