Improved list item editor

This commit is contained in:
2018-04-20 00:06:13 +02:00
parent 5173ba2a83
commit ad561c5652
8 changed files with 96 additions and 44 deletions

View File

@ -25,6 +25,11 @@ func Get(ctx *aero.Context) string {
func Profile(ctx *aero.Context, viewUser *arn.User) string {
user := utils.GetUser(ctx)
animeList := viewUser.AnimeList()
if user == nil || user.ID != viewUser.ID {
animeList = animeList.WithoutPrivateItems()
}
animeList.SortByRating()
openGraph := &arn.OpenGraph{