]> source.dussan.org Git - gitea.git/commitdiff
fix regression of 15139 (#15164)
author6543 <6543@obermui.de>
Fri, 26 Mar 2021 02:46:41 +0000 (03:46 +0100)
committerGitHub <noreply@github.com>
Fri, 26 Mar 2021 02:46:41 +0000 (03:46 +0100)
modules/convert/pull_review.go

index 067831cd77b0c2170c96ecf8f4a108b93c62d374..418cb711dc5e9efb63028a77abe3b2dea39f5947 100644 (file)
@@ -96,7 +96,7 @@ func ToPullReviewCommentList(review *models.Review, doer *models.User) ([]*api.P
                                        ID:           comment.ID,
                                        Body:         comment.Content,
                                        Reviewer:     ToUser(comment.Poster, doer != nil, auth),
-                                       ReviewID:     comment.PosterID,
+                                       ReviewID:     review.ID,
                                        Created:      comment.CreatedUnix.AsTime(),
                                        Updated:      comment.UpdatedUnix.AsTime(),
                                        Path:         comment.TreePath,