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