aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/user.go2
-rw-r--r--models/webhook.go1
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"`