From b52e8de7ded82687a79f31127f05570ac5880de0 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 21 May 2020 04:01:01 +0200 Subject: [PATCH] Fix commit page js error (1.11 backport) (#11527) Partial backport of https://github.com/go-gitea/gitea/commit/fd094eea959a235654b7591da066dcbbee11fc25 to 1.11. Fixes: https://github.com/go-gitea/gitea/issues/11518 --- routers/repo/commit.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routers/repo/commit.go b/routers/repo/commit.go index a2695d2d4..42fe81443 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -201,6 +201,8 @@ func FileHistory(ctx *context.Context) { func Diff(ctx *context.Context) { ctx.Data["PageIsDiff"] = true ctx.Data["RequireHighlightJS"] = true + ctx.Data["RequireSimpleMDE"] = true + ctx.Data["RequireTribute"] = true userName := ctx.Repo.Owner.Name repoName := ctx.Repo.Repository.Name