Disabled old profile pages
This commit is contained in:
@ -1,18 +1,18 @@
|
||||
package profilequotes
|
||||
|
||||
import (
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/arn"
|
||||
)
|
||||
// import (
|
||||
// "github.com/aerogo/aero"
|
||||
// "github.com/animenotifier/arn"
|
||||
// )
|
||||
|
||||
// Liked shows all quotes liked by a particular user.
|
||||
func Liked(ctx *aero.Context) string {
|
||||
return render(ctx, likedQuotes)
|
||||
}
|
||||
// // Liked shows all quotes liked by a particular user.
|
||||
// func Liked(ctx *aero.Context) string {
|
||||
// return render(ctx, likedQuotes)
|
||||
// }
|
||||
|
||||
// likedQuotes returns all quotes that the user with the given user ID liked.
|
||||
func likedQuotes(userID string) []*arn.Quote {
|
||||
return arn.FilterQuotes(func(track *arn.Quote) bool {
|
||||
return !track.IsDraft && len(track.Text.English) > 0 && track.LikedBy(userID)
|
||||
})
|
||||
}
|
||||
// // likedQuotes returns all quotes that the user with the given user ID liked.
|
||||
// func likedQuotes(userID string) []*arn.Quote {
|
||||
// return arn.FilterQuotes(func(track *arn.Quote) bool {
|
||||
// return !track.IsDraft && len(track.Text.English) > 0 && track.LikedBy(userID)
|
||||
// })
|
||||
// }
|
||||
|
Reference in New Issue
Block a user