File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ func (u *User) RelAvatarLink() string {
271
271
func (u * User ) AvatarLink () string {
272
272
link := u .RelAvatarLink ()
273
273
if link [0 ] == '/' && link [1 ] != '/' {
274
- return setting .AppUrl + link [1 :]
274
+ return setting .AppUrl + strings . TrimPrefix ( link , setting . AppSubUrl ) [1 :]
275
275
}
276
276
return link
277
277
}
Original file line number Diff line number Diff line change 1
1
<div class="commit-form-wrapper">
2
- <img width="48" height="48" class="ui image commit-avatar" src="{{.SignedUser.AvatarLink }}">
2
+ <img width="48" height="48" class="ui image commit-avatar" src="{{.SignedUser.RelAvatarLink }}">
3
3
<div class="commit-form">
4
4
<h3>{{.i18n.Tr "repo.editor.commit_changes"}}</h3>
5
5
<div class="field">
You can’t perform that action at this time.
0 commit comments