From c21cc341162ddb35e45be6e8d899d96cea29b129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Dachary?= Date: Sun, 26 Nov 2023 06:33:40 +0100 Subject: [PATCH] Revert "fix POST /{owner}/{repo}/comments/{id}/delete" This reverts commit 44f25920280d15fc49611065937dda65853439f0. --- 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 9f78cb8e0a..7cb57b3628 100644 --- a/routers/web/repo/issue.go +++ b/routers/web/repo/issue.go @@ -3037,11 +3037,6 @@ func DeleteComment(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