index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
models
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
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 4b2fd0ce..9c9345c2 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