diff options
author | Unknwon <u@gogs.io> | 2015-09-02 05:16:30 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-02 05:16:30 -0400 |
commit | 6ea28f2a4759c5192811b12de054e7ad62f080f6 (patch) | |
tree | 3b563ba5d0d563cb234d61ec32d53ce87ff344c5 /models | |
parent | 1abfe4e05f2c936ab43c8188003a33213b245a56 (diff) | |
download | gitea-6ea28f2a4759c5192811b12de054e7ad62f080f6.tar.gz gitea-6ea28f2a4759c5192811b12de054e7ad62f080f6.zip |
work on #1558
Diffstat (limited to 'models')
-rw-r--r-- | models/user.go | 2 |
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 |