From db1bd78d71c887240b51626b98e1b3e1b684248a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Dachary?= Date: Sun, 26 Nov 2023 06:33:38 +0100 Subject: [PATCH] Revert "fix POST /{owner}/{repo}/comments/{id}" This reverts commit 5cc6361e31afe5c9506a6a591207324122a8aa5d. --- routers/web/repo/issue.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go index c58e1f7a79..9f78cb8e0a 100644 --- a/routers/web/repo/issue.go +++ b/routers/web/repo/issue.go @@ -2971,11 +2971,6 @@ func UpdateCommentContent(ctx *context.Context) { return } - if comment.Issue.RepoID != ctx.Repo.Repository.ID { - ctx.NotFound("CompareRepoID", issues_model.ErrCommentNotExist{}) - return - } - if !ctx.IsSigned || (ctx.Doer.ID != comment.PosterID && !ctx.Repo.CanWriteIssuesOrPulls(comment.Issue.IsPull)) { ctx.Error(http.StatusForbidden) return