diff options
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 ef769de655..946c6c94d4 100644 --- a/models/user.go +++ b/models/user.go @@ -271,7 +271,7 @@ func (u *User) RelAvatarLink() string { func (u *User) AvatarLink() string { link := u.RelAvatarLink() if link[0] == '/' && link[1] != '/' { - return setting.AppUrl + link[1:] + return setting.AppUrl + strings.TrimPrefix(link, setting.AppSubUrl)[1:] } return link } |