summaryrefslogtreecommitdiffstats
path: root/modules/convert
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-05-21 03:41:30 +0100
committerGitHub <noreply@github.com>2020-05-20 22:41:30 -0400
commit0b8b81e02902a5c11829cce7f439f84731a8eaeb (patch)
tree86a22ac5a49bac8281863adaade577aef7b06727 /modules/convert
parentb02d2c37728491caaf8af3384b8d3b25411e4679 (diff)
downloadgitea-0b8b81e02902a5c11829cce7f439f84731a8eaeb.tar.gz
gitea-0b8b81e02902a5c11829cce7f439f84731a8eaeb.zip
API PullReviewComment HTMLPullURL should return the HTMLURL (#11501)
Fix #11499 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'modules/convert')
-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 619f9f070e..032d3617fc 100644
--- a/modules/convert/pull_review.go
+++ b/modules/convert/pull_review.go
@@ -103,7 +103,7 @@ func ToPullReviewCommentList(review *models.Review, doer *models.User) ([]*api.P
OrigCommitID: comment.OldRef,
DiffHunk: patch2diff(comment.Patch),
HTMLURL: comment.HTMLURL(),
- HTMLPullURL: review.Issue.APIURL(),
+ HTMLPullURL: review.Issue.HTMLURL(),
}
if comment.Line < 0 {