Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-24 02:36:10 +01:00

Revert "fix POST /{owner}/{repo}/comments/{id}/reactions/{action}"

This reverts commit 6f87e71f0c.
This commit is contained in:
Loïc Dachary 2023-11-26 06:33:37 +01:00
parent 2e1d6d2ef2
commit 5fc5d186e0
No known key found for this signature in database
GPG key ID: 992D23B392F9E4F2

View file

@ -3173,11 +3173,6 @@ func ChangeCommentReaction(ctx *context.Context) {
return
}
if comment.Issue.RepoID != ctx.Repo.Repository.ID {
ctx.NotFound("CompareRepoID", issues_model.ErrCommentNotExist{})
return
}
if !ctx.IsSigned || (ctx.Doer.ID != comment.PosterID && !ctx.Repo.CanReadIssuesOrPulls(comment.Issue.IsPull)) {
if log.IsTrace() {
if ctx.IsSigned {