diff options
Diffstat (limited to 'models')
-rw-r--r-- | models/user.go | 2 | ||||
-rw-r--r-- | models/webhook.go | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go index 88fcb8388e..7038e075f8 100644 --- a/models/user.go +++ b/models/user.go @@ -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. diff --git a/models/webhook.go b/models/webhook.go index 2f2accf9d2..33146b529a 100644 --- a/models/webhook.go +++ b/models/webhook.go @@ -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"` |