From d7f5ff07822c7946ab780185e50dfde368d16881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Dachary?= Date: Sun, 26 Nov 2023 06:33:33 +0100 Subject: [PATCH] Revert "fix GET /{username}/{reponame}/{type:issues|pulls}/{index}/content-history/detail" This reverts commit 5ef4992fd777f4b0b1a647ee5a739eb95e37b016. --- routers/web/repo/issue_content_history.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/routers/web/repo/issue_content_history.go b/routers/web/repo/issue_content_history.go index bc0945c9d1..23255e774f 100644 --- a/routers/web/repo/issue_content_history.go +++ b/routers/web/repo/issue_content_history.go @@ -125,10 +125,6 @@ func GetContentHistoryDetail(ctx *context.Context) { }) return } - if history.IssueID != issue.ID { - ctx.NotFound("CompareRepoID", issues_model.ErrCommentNotExist{}) - return - } // get the related comment if this history revision is for a comment, otherwise the history revision is for an issue. var comment *issues_model.Comment