mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-24 23:42:42 +01:00
Fix API to return author for author on commits(#16276)
This commit is contained in:
parent
9a0cd3af3b
commit
59c58553ba
1 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue