From 33e0b38287fdc3487112062300b8dd3c95415ee7 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 29 Jul 2021 09:42:15 +0800 Subject: Rename context.Query to context.Form (#16562) --- routers/web/repo/pull_review.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'routers/web/repo/pull_review.go') diff --git a/routers/web/repo/pull_review.go b/routers/web/repo/pull_review.go index 36eee3f377..b087e40ce6 100644 --- a/routers/web/repo/pull_review.go +++ b/routers/web/repo/pull_review.go @@ -101,9 +101,9 @@ func CreateCodeComment(ctx *context.Context) { // UpdateResolveConversation add or remove an Conversation resolved mark func UpdateResolveConversation(ctx *context.Context) { - origin := ctx.Query("origin") - action := ctx.Query("action") - commentID := ctx.QueryInt64("comment_id") + origin := ctx.Form("origin") + action := ctx.Form("action") + commentID := ctx.FormInt64("comment_id") comment, err := models.GetCommentByID(commentID) if err != nil { -- cgit v1.2.3