mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-27 04:07:08 +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 (cherry picked from commit 6fad2c874438275d3f69bb1cc223708bd2d27ff6)
This commit is contained in:
parent
27bc2b9d95
commit
e9e6c6152e
3 changed files with 12 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue