aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2021-03-26 03:46:41 +0100
committerGitHub <noreply@github.com>2021-03-26 03:46:41 +0100
commitdc56fb7c84bb123614fb190319081e5a9bc18133 (patch)
treefba2da065f36d6ce4f9f92d6053f7165d14fdbd7
parentb68eb54f95f894a71a1a91c22eff90e1d2f38a0e (diff)
downloadgitea-dc56fb7c84bb123614fb190319081e5a9bc18133.tar.gz
gitea-dc56fb7c84bb123614fb190319081e5a9bc18133.zip
fix regression of 15139 (#15164)
-rw-r--r--modules/convert/pull_review.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/convert/pull_review.go b/modules/convert/pull_review.go
index 067831cd77..418cb711dc 100644
--- a/modules/convert/pull_review.go
+++ b/modules/convert/pull_review.go
@@ -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,