2018-03-14 17:21:22 +00:00
|
|
|
package profiletracks
|
|
|
|
|
2018-12-04 23:49:21 +00:00
|
|
|
// import (
|
|
|
|
// "github.com/aerogo/aero"
|
|
|
|
// "github.com/animenotifier/arn"
|
|
|
|
// )
|
2018-03-14 17:21:22 +00:00
|
|
|
|
2018-12-04 23:49:21 +00:00
|
|
|
// // Added shows all soundtracks added by a particular user.
|
|
|
|
// func Added(ctx *aero.Context) string {
|
|
|
|
// return render(ctx, addedTracks)
|
|
|
|
// }
|
2018-03-14 17:21:22 +00:00
|
|
|
|
2018-12-04 23:49:21 +00:00
|
|
|
// // addedTracks returns all soundtracks that the user with the given user ID published.
|
|
|
|
// func addedTracks(userID string) []*arn.SoundTrack {
|
|
|
|
// return arn.FilterSoundTracks(func(track *arn.SoundTrack) bool {
|
|
|
|
// return !track.IsDraft && len(track.Media) > 0 && track.CreatedBy == userID
|
|
|
|
// })
|
|
|
|
// }
|