This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
OpenI
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
提交代码,解决用户图像更新问题
Signed-off-by: zouap <zouap@pcl.ac.cn>
pull/3435/head
zouap
2 years ago
parent
437b465f31
commit
d0d8bad140
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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.
UseCustom
Avatar {
append = "?" + fmt.Sprint(rand.Intn(100))
}
return u.SizedRelAvatarLink(base.DefaultAvatarSize) + append
Write
Preview
Loading…
Cancel
Save