From f0170718c37bcbc05512e8b57799fe98af0f5ae0 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sun, 27 Jun 2021 23:37:20 +0200 Subject: [PATCH] fix: respect author --- modules/convert/git_commit.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/convert/git_commit.go b/modules/convert/git_commit.go index c647dd4e1843e..fd4f12ecfa6d5 100644 --- a/modules/convert/git_commit.go +++ b/modules/convert/git_commit.go @@ -155,8 +155,8 @@ func ToCommit(repo *models.Repository, commit *git.Commit, userCache map[string] URL: repo.APIURL() + "/git/commits/" + commit.ID.String(), Author: &api.CommitUser{ Identity: api.Identity{ - Name: commit.Committer.Name, - Email: commit.Committer.Email, + Name: commit.Author.Name, + Email: commit.Author.Email, }, Date: commit.Author.When.Format(time.RFC3339), },