|
|
|
@@ -468,8 +468,10 @@ func (images ImageList) loadAttributes(e Engine, uid int64) error { |
|
|
|
} |
|
|
|
|
|
|
|
for i := range images { |
|
|
|
images[i].UserName = users[images[i].UID].Name |
|
|
|
images[i].RelAvatarLink = users[images[i].UID].RelAvatarLink() |
|
|
|
if users[images[i].UID] != nil { |
|
|
|
images[i].UserName = users[images[i].UID].Name |
|
|
|
images[i].RelAvatarLink = users[images[i].UID].RelAvatarLink() |
|
|
|
} |
|
|
|
if uid == -1 { |
|
|
|
images[i].IsStar = false |
|
|
|
} else { |
|
|
|
|