summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-27 23:58:50 +0800
committerUnknwon <u@gogs.io>2015-08-27 23:58:50 +0800
commit70e0153b939a2446bf1d8e459a1b965660463585 (patch)
tree4cb8012a4cdb85f773a00328f4ccea1321875691 /routers
parente44852ff79598c1a39898a00e1489c017cc2619a (diff)
downloadgitea-70e0153b939a2446bf1d8e459a1b965660463585.tar.gz
gitea-70e0153b939a2446bf1d8e459a1b965660463585.zip
add highlight js
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/setting.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go
index 3e94f3210a..b463b7c6a1 100644
--- a/routers/repo/setting.go
+++ b/routers/repo/setting.go
@@ -418,6 +418,8 @@ func SlackHooksNewPost(ctx *middleware.Context, form auth.NewSlackHookForm) {
}
func checkWebhook(ctx *middleware.Context) (*OrgRepoCtx, *models.Webhook) {
+ ctx.Data["RequireHighlightJS"] = true
+
orCtx, err := getOrgRepoCtx(ctx)
if err != nil {
ctx.Handle(500, "getOrgRepoCtx", err)