summaryrefslogtreecommitdiffstats
path: root/routers/repo/setting.go
diff options
context:
space:
mode:
authorChristopher Brickley <brickley@gmail.com>2014-09-03 22:14:55 -0400
committerChristopher Brickley <brickley@gmail.com>2014-09-05 07:19:34 -0400
commit7269b06fd5992776c07ae0303f85e0d05b1e62e9 (patch)
tree6834a9e02321df6fce3de8dfdad9f82b59c3a4df /routers/repo/setting.go
parent8d2fe064c5d3858d76ebd67d5597a0bfccce4ecc (diff)
downloadgitea-7269b06fd5992776c07ae0303f85e0d05b1e62e9.tar.gz
gitea-7269b06fd5992776c07ae0303f85e0d05b1e62e9.zip
HookType is case-sensitive
Update webhook wasn’t showing up because of the wrong case
Diffstat (limited to 'routers/repo/setting.go')
-rw-r--r--routers/repo/setting.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go
index fba9eed6a2..7456781222 100644
--- a/routers/repo/setting.go
+++ b/routers/repo/setting.go
@@ -354,11 +354,11 @@ func WebHooksEdit(ctx *middleware.Context) {
case models.SLACK:
{
ctx.Data["SlackHook"] = w.GetSlackHook()
- ctx.Data["HookType"] = "slack"
+ ctx.Data["HookType"] = "Slack"
}
default:
{
- ctx.Data["HookType"] = "gogs"
+ ctx.Data["HookType"] = "Gogs"
}
}
w.GetEvent()