We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc5ccf4 commit cbc595bCopy full SHA for cbc595b
routers/api/v1/repo/issue_comment.go
@@ -721,8 +721,8 @@ func deleteIssueComment(ctx *context.APIContext) {
721
if !ctx.IsSigned || (ctx.Doer.ID != comment.PosterID && !ctx.Repo.CanWriteIssuesOrPulls(comment.Issue.IsPull)) {
722
ctx.Status(http.StatusForbidden)
723
return
724
- } else if comment.Type != issues_model.CommentTypeComment {
725
- ctx.Status(http.StatusNoContent)
+ } else if !comment.Type.HasContentSupport() {
+ ctx.Status(http.StatusBadRequest)
726
727
}
728
0 commit comments