mirror of
https://github.com/go-gitea/gitea
synced 2025-01-03 02:56:00 +01:00
parent
e11f042a95
commit
c7db7438b7
@ -155,8 +155,8 @@ func ToCommit(repo *models.Repository, commit *git.Commit, userCache map[string]
|
|||||||
URL: repo.APIURL() + "/git/commits/" + commit.ID.String(),
|
URL: repo.APIURL() + "/git/commits/" + commit.ID.String(),
|
||||||
Author: &api.CommitUser{
|
Author: &api.CommitUser{
|
||||||
Identity: api.Identity{
|
Identity: api.Identity{
|
||||||
Name: commit.Committer.Name,
|
Name: commit.Author.Name,
|
||||||
Email: commit.Committer.Email,
|
Email: commit.Author.Email,
|
||||||
},
|
},
|
||||||
Date: commit.Author.When.Format(time.RFC3339),
|
Date: commit.Author.When.Format(time.RFC3339),
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user