Browse Source
we don't want reviews to count towards comments, as this needs changes
in other components as well (eg repo stats cron job, etc).
tags/v1.15.10
Norwin
2 years ago
No account linked to committer's email address
|
|
@@ -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 { |