Disabled old profile pages

This commit is contained in:
2018-12-05 08:49:21 +09:00
parent 99e7ded4c4
commit ba57870cc9
7 changed files with 174 additions and 174 deletions

View File

@ -1,18 +1,18 @@
package profiletracks
import (
"github.com/aerogo/aero"
"github.com/animenotifier/arn"
)
// import (
// "github.com/aerogo/aero"
// "github.com/animenotifier/arn"
// )
// Liked shows all soundtracks liked by a particular user.
func Liked(ctx *aero.Context) string {
return render(ctx, likedTracks)
}
// // Liked shows all soundtracks liked by a particular user.
// func Liked(ctx *aero.Context) string {
// return render(ctx, likedTracks)
// }
// likedTracks returns all soundtracks that the user with the given user ID liked.
func likedTracks(userID string) []*arn.SoundTrack {
return arn.FilterSoundTracks(func(track *arn.SoundTrack) bool {
return !track.IsDraft && len(track.Media) > 0 && track.LikedBy(userID)
})
}
// // likedTracks returns all soundtracks that the user with the given user ID liked.
// func likedTracks(userID string) []*arn.SoundTrack {
// return arn.FilterSoundTracks(func(track *arn.SoundTrack) bool {
// return !track.IsDraft && len(track.Media) > 0 && track.LikedBy(userID)
// })
// }