mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-11 18:14:15 +01:00
fix GET /{username}/{reponame}/{type:issues|pulls}/{index}/content-history/detail
(cherry picked from commit 0853dec293dd632a03948f66af69e75dd582a92d)
This commit is contained in:
parent
75730a6ded
commit
5ef4992fd7
1 changed files with 4 additions and 0 deletions
|
@ -125,6 +125,10 @@ 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
|
||||
|
|
Loading…
Reference in a new issue