Browse Source

提交代码,解决用户图像更新问题

Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/3435/head
zouap 2 years ago
parent
commit
d0d8bad140
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/user.go

+ 1
- 1
models/user.go View File

@@ -497,7 +497,7 @@ func (u *User) RealSizedAvatarLink(size int) string {
// service.
func (u *User) RelAvatarLink() string {
append := ""
if u.Avatar != ""{
if u.UseCustomAvatar {
append = "?" + fmt.Sprint(rand.Intn(100))
}
return u.SizedRelAvatarLink(base.DefaultAvatarSize) + append


Loading…
Cancel
Save