mirror of
https://github.com/go-gitea/gitea
synced 2025-07-14 22:47:21 +00:00
#12, add/edit hook
This commit is contained in:
@ -334,6 +334,7 @@ func WebHooksNewPost(ctx *middleware.Context, form auth.NewWebhookForm) {
|
||||
return
|
||||
}
|
||||
|
||||
// FIXME: code too old here, sync with APIs
|
||||
ct := models.JSON
|
||||
if form.ContentType == "2" {
|
||||
ct = models.FORM
|
||||
|
Reference in New Issue
Block a user