From 5fc5d186e04fd7773582ca152930a8f58a446fd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Dachary?= Date: Sun, 26 Nov 2023 06:33:37 +0100 Subject: [PATCH] Revert "fix POST /{owner}/{repo}/comments/{id}/reactions/{action}" This reverts commit 6f87e71f0cfd5bc12799892cc47971ddf334a0d9. --- 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 ece290bf30..c58e1f7a79 100644 --- a/routers/web/repo/issue.go +++ b/routers/web/repo/issue.go @@ -3173,11 +3173,6 @@ func ChangeCommentReaction(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.CanReadIssuesOrPulls(comment.Issue.IsPull)) { if log.IsTrace() { if ctx.IsSigned {