summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-02 05:16:30 -0400
committerUnknwon <u@gogs.io>2015-09-02 05:16:30 -0400
commit6ea28f2a4759c5192811b12de054e7ad62f080f6 (patch)
tree3b563ba5d0d563cb234d61ec32d53ce87ff344c5 /models
parent1abfe4e05f2c936ab43c8188003a33213b245a56 (diff)
downloadgitea-6ea28f2a4759c5192811b12de054e7ad62f080f6.tar.gz
gitea-6ea28f2a4759c5192811b12de054e7ad62f080f6.zip
work on #1558
Diffstat (limited to 'models')
-rw-r--r--models/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go
index 4b2fd0ce66..9c9345c20b 100644
--- a/models/user.go
+++ b/models/user.go
@@ -180,7 +180,7 @@ func (u *User) RelAvatarLink() string {
// AvatarLink returns user gravatar link.
func (u *User) AvatarLink() string {
link := u.RelAvatarLink()
- if link[0] == '/' {
+ if link[0] == '/' && link[1] != '/' {
return setting.AppSubUrl + link
}
return link