mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-17 11:59:30 +00:00
support duoshuo mirror of gravatar
This commit is contained in:
parent
4c770b87c5
commit
340a4595dd
8 changed files with 20 additions and 6 deletions
|
@ -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"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue