diff options
author | 6543 <6543@obermui.de> | 2021-06-28 00:15:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-27 23:15:42 +0100 |
commit | 59c58553baa5597f5c2156b47fd2e47e46aa58ac (patch) | |
tree | 69bef0b29bb146def458c53cd0aaff6b272dde24 /modules/convert | |
parent | 9a0cd3af3b60ccd6ce400539b309026a82788595 (diff) | |
download | gitea-59c58553baa5597f5c2156b47fd2e47e46aa58ac.tar.gz gitea-59c58553baa5597f5c2156b47fd2e47e46aa58ac.zip |
Fix API to return author for author on commits(#16276)
Diffstat (limited to 'modules/convert')
-rw-r--r-- | modules/convert/git_commit.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/convert/git_commit.go b/modules/convert/git_commit.go index c647dd4e18..fd4f12ecfa 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), }, |