From 4927e735511248ac34ff8769aa7583342faf3861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Dachary?= Date: Sun, 26 Nov 2023 06:33:27 +0100 Subject: [PATCH] Revert "fix POST /{username}/{reponame}/{type:issues|pulls}/move_pin" This reverts commit e9aa373db5bf33c500cd51f0db2846bf53425b68. --- routers/web/repo/issue_pin.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/routers/web/repo/issue_pin.go b/routers/web/repo/issue_pin.go index 977744b52d..bbfeaee6e8 100644 --- a/routers/web/repo/issue_pin.go +++ b/routers/web/repo/issue_pin.go @@ -89,10 +89,6 @@ func IssuePinMove(ctx *context.Context) { log.Error(err.Error()) return } - if issue.RepoID != ctx.Repo.Repository.ID { - ctx.NotFound("CompareRepoID", issues_model.ErrCommentNotExist{}) - return - } err = issue.MovePin(ctx, form.Position) if err != nil {