Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-27 20:26:09 +01:00

Revert "fix GET /repos/{owner}/{repo}/issues/comments/{id}/reactions"

This reverts commit 585f74c2ca.
This commit is contained in:
Loïc Dachary 2023-11-26 06:33:44 +01:00
parent 5209a09375
commit 3869f80b52
No known key found for this signature in database
GPG key ID: 992D23B392F9E4F2

View file

@ -61,12 +61,6 @@ func GetIssueCommentReactions(ctx *context.APIContext) {
if err := comment.LoadIssue(ctx); err != nil {
ctx.Error(http.StatusInternalServerError, "comment.LoadIssue", err)
return
}
if comment.Issue.RepoID != ctx.Repo.Repository.ID {
ctx.NotFound()
return
}
if !ctx.Repo.CanReadIssuesOrPulls(comment.Issue.IsPull) {