mirror of
https://github.com/go-gitea/gitea
synced 2025-07-19 08:48:37 +00:00
#3505 use user’s info for committer and author
This commit is contained in:
@@ -308,7 +308,7 @@ func (u *User) GetFollowing(page int) ([]*User, error) {
|
||||
// NewGitSig generates and returns the signature of given user.
|
||||
func (u *User) NewGitSig() *git.Signature {
|
||||
return &git.Signature{
|
||||
Name: u.Name,
|
||||
Name: u.DisplayName(),
|
||||
Email: u.Email,
|
||||
When: time.Now(),
|
||||
}
|
||||
|
Reference in New Issue
Block a user