Browse Source

提交代码

tags/v1.22.5.1^2
ychao_1983 3 years ago
parent
commit
eeac639db1
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      models/cloudbrain_image.go

+ 3
- 0
models/cloudbrain_image.go View File

@@ -471,6 +471,9 @@ func (images ImageList) loadAttributes(e Engine, uid int64) error {
if users[images[i].UID] != nil {
images[i].UserName = users[images[i].UID].Name
images[i].RelAvatarLink = users[images[i].UID].RelAvatarLink()
} else {
images[i].UserName = ""
images[i].RelAvatarLink = ""
}
if uid == -1 {
images[i].IsStar = false


Loading…
Cancel
Save