diff options
Diffstat (limited to 'routers/repo/commit.go')
-rw-r--r-- | routers/repo/commit.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go index 9791cc5511..4c5bcf0cbd 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -159,6 +159,7 @@ func Diff(ctx *middleware.Context) { ctx.Data["IsImageFile"] = isImageFile ctx.Data["Title"] = commit.Summary() + " ยท " + base.ShortSha(commitId) ctx.Data["Commit"] = commit + ctx.Data["Author"] = models.ValidateCommitWithEmail(commit) ctx.Data["Diff"] = diff ctx.Data["Parents"] = parents ctx.Data["DiffNotAvailable"] = diff.NumFiles() == 0 @@ -212,6 +213,7 @@ func CompareDiff(ctx *middleware.Context) { ctx.Handle(500, "CommitsBeforeUntil", err) return } + commits = models.ValidateCommitsWithEmails(commits) ctx.Data["Commits"] = commits ctx.Data["CommitCount"] = commits.Len() |