1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-05 09:55:20 +02:00

Fix issue comment number (#30556)

(cherry picked from commit a54cc05d2a19262a8d59f2b90fbcdd9ee5199ca8)

Conflicts:
	models/issues/comment_test.go
  trivial context conflicts
This commit is contained in:
Lunny Xiao 2024-12-30 14:35:46 -08:00 committed by Earl Warren
parent af91f4e203
commit 15ff226a5b
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
5 changed files with 90 additions and 19 deletions

View file

@ -614,6 +614,10 @@ func InsertReviews(ctx context.Context, reviews []*Review) error {
return err
}
}
if err := UpdateIssueNumComments(ctx, review.IssueID); err != nil {
return err
}
}
return committer.Commit()