mirror of
1
Fork 0

fix POST /{username}/{reponame}/{type:issues|pulls}/move_pin

This commit is contained in:
Loïc Dachary 2023-11-20 16:34:19 +01:00
parent dbf325c564
commit d97efb777f
No known key found for this signature in database
GPG Key ID: 992D23B392F9E4F2
1 changed files with 4 additions and 0 deletions

View File

@ -89,6 +89,10 @@ func IssuePinMove(ctx *context.Context) {
log.Error(err.Error())
return
}
if issue.RepoID != ctx.Repo.Repository.ID {
ctx.NotFound("CompareRepoID", issues_model.ErrCommentNotExist{})
return
}
err = issue.MovePin(ctx, form.Position)
if err != nil {