mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
support duoshuo mirror of gravatar
This commit is contained in:
@@ -100,7 +100,7 @@ func (u *User) AvatarLink() string {
|
||||
} else if setting.Service.EnableCacheAvatar {
|
||||
return setting.AppSubUrl + "/avatar/" + u.Avatar
|
||||
}
|
||||
return "//1.gravatar.com/avatar/" + u.Avatar
|
||||
return setting.GravatarSource + u.Avatar
|
||||
}
|
||||
|
||||
// NewGitSig generates and returns the signature of given user.
|
||||
|
@@ -207,6 +207,7 @@ const (
|
||||
PUSH HookEventType = "push"
|
||||
)
|
||||
|
||||
// FIXME: just use go-gogs-client structs maybe?
|
||||
type PayloadAuthor struct {
|
||||
Name string `json:"name"`
|
||||
Email string `json:"email"`
|
||||
|
Reference in New Issue
Block a user