diff options
author | Russell Aunger <raunger@gmail.com> | 2018-06-21 01:22:03 -0400 |
---|---|---|
committer | David Schneiderbauer <daviian@users.noreply.github.com> | 2018-06-21 07:22:03 +0200 |
commit | 9ae7664df7caa24825cc4cee4e4121e9f1d73e59 (patch) | |
tree | 2eff61f1174e542d4ccf45a9164e282ec1d71c5e /routers/routes/routes.go | |
parent | ac110d1b739bdbbbac3d1156afcfa9817663e891 (diff) | |
download | gitea-9ae7664df7caa24825cc4cee4e4121e9f1d73e59.tar.gz gitea-9ae7664df7caa24825cc4cee4e4121e9f1d73e59.zip |
Fix webhook type conflation. (#4285)
- Fix typo that caused Gogs hooks to be created as Gitea hooks.
- Fix typo that caused Gogs hooks to be duplicated upon edit (though this bug was masked by the previous one).
Signed-off-by: Russell Aunger <rba@live.com>
Diffstat (limited to 'routers/routes/routes.go')
-rw-r--r-- | routers/routes/routes.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go index 15b91f1599..250b98507e 100644 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -486,7 +486,7 @@ func RegisterRoutes(m *macaron.Macaron) { m.Get("/:id", repo.WebHooksEdit) m.Post("/:id/test", repo.TestWebhook) m.Post("/gitea/:id", bindIgnErr(auth.NewWebhookForm{}), repo.WebHooksEditPost) - m.Post("/gogs/:id", bindIgnErr(auth.NewGogshookForm{}), repo.GogsHooksNewPost) + m.Post("/gogs/:id", bindIgnErr(auth.NewGogshookForm{}), repo.GogsHooksEditPost) m.Post("/slack/:id", bindIgnErr(auth.NewSlackHookForm{}), repo.SlackHooksEditPost) m.Post("/discord/:id", bindIgnErr(auth.NewDiscordHookForm{}), repo.DiscordHooksEditPost) m.Post("/dingtalk/:id", bindIgnErr(auth.NewDingtalkHookForm{}), repo.DingtalkHooksEditPost) |