Disable old profile pages

This commit is contained in:
2018-11-24 15:57:52 +09:00
parent 5668c66b31
commit cfb481df52
18 changed files with 280 additions and 283 deletions

View File

@ -38,7 +38,8 @@ func Profile(ctx *aero.Context, viewUser *arn.User) string {
animeList = animeList.WithoutPrivateItems()
}
animeList.SortByRating()
completedList := animeList.FilterStatus(arn.AnimeListStatusCompleted)
completedList.SortByRating()
// Genres
topGenres := animeList.TopGenres(5)
@ -127,5 +128,5 @@ func Profile(ctx *aero.Context, viewUser *arn.User) string {
}
ctx.Data = openGraph
return ctx.HTML(components.Profile(viewUser, user, animeList, characters, friends, topGenres, dayToActivityCount, ctx.URI()))
return ctx.HTML(components.Profile(viewUser, user, animeList, completedList, characters, friends, topGenres, dayToActivityCount, ctx.URI()))
}