1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-30 09:41:11 -05:00

Revert "fix GET /{username}/{reponame}/{type:issues|pulls}/{index}/content-history/detail"

This reverts commit 5ef4992fd7.
This commit is contained in:
Loïc Dachary 2023-11-26 06:33:33 +01:00
parent 15cc486204
commit d7f5ff0782
No known key found for this signature in database
GPG key ID: 992D23B392F9E4F2

View file

@ -125,10 +125,6 @@ func GetContentHistoryDetail(ctx *context.Context) {
}) })
return 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. // 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 var comment *issues_model.Comment