Minor improvements
This commit is contained in:
parent
2d825739ca
commit
84c34b0252
@ -160,7 +160,7 @@ func Profile(ctx aero.Context, viewUser *arn.User) error {
|
|||||||
groups := []*arn.Group{}
|
groups := []*arn.Group{}
|
||||||
|
|
||||||
for group := range arn.StreamGroups() {
|
for group := range arn.StreamGroups() {
|
||||||
if group.HasMember(viewUser.ID) {
|
if !group.IsDraft && group.HasMember(viewUser.ID) {
|
||||||
groups = append(groups, group)
|
groups = append(groups, group)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,10 +37,10 @@ component Profile(viewUser *arn.User, user *arn.User, animeList *arn.AnimeList,
|
|||||||
if len(groups) == 0
|
if len(groups) == 0
|
||||||
p.no-data.mountable(data-mountable-type="favorites") Nothing here yet.
|
p.no-data.mountable(data-mountable-type="favorites") Nothing here yet.
|
||||||
else
|
else
|
||||||
.profile-groups.mountable(data-mountable-type="favorites")
|
.profile-groups.mountable(data-mountable-type="favorites")
|
||||||
each group in groups
|
each group in groups
|
||||||
a.profile-group.tip.mountable(href=group.Link(), aria-label=group.Name, data-mountable-type="group")
|
a.profile-group.tip.mountable(href=group.Link(), aria-label=group.Name, data-mountable-type="group")
|
||||||
img.group-image.lazy(data-src=group.ImageLink("small"), data-webp=true, alt=group.Name)
|
img.group-image.lazy(data-src=group.ImageLink("small"), data-webp=true, alt=group.Name)
|
||||||
|
|
||||||
//- //- People
|
//- //- People
|
||||||
//- .profile-section
|
//- .profile-section
|
||||||
|
Loading…
Reference in New Issue
Block a user