mirror of
https://github.com/go-gitea/gitea
synced 2025-07-03 09:07:19 +00:00
Dont load Review if Comment is CommentTypeReviewRequest (#28551)
RequestReview get deleted on review. So we don't have to try to load them on comments. broken out #28544
This commit is contained in:
@ -621,6 +621,9 @@ func AddReviewRequest(ctx context.Context, issue *Issue, reviewer, doer *user_mo
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// func caller use the created comment to retrieve created review too.
|
||||
comment.Review = review
|
||||
|
||||
return comment, committer.Commit()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user