mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-20 05:00:01 +02:00
#12, add/edit hook
This commit is contained in:
parent
9e22840483
commit
9dc3c93a6a
7 changed files with 192 additions and 24 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue