2018-03-19 11:25:31 +00:00
|
|
|
package profilequotes
|
|
|
|
|
2018-12-04 23:49:21 +00:00
|
|
|
// import (
|
|
|
|
// "github.com/aerogo/aero"
|
|
|
|
// "github.com/animenotifier/arn"
|
|
|
|
// )
|
2018-03-19 11:25:31 +00:00
|
|
|
|
2018-12-04 23:49:21 +00:00
|
|
|
// // Added shows all quotes added by a particular user.
|
|
|
|
// func Added(ctx *aero.Context) string {
|
|
|
|
// return render(ctx, addedQuotes)
|
|
|
|
// }
|
2018-03-19 11:25:31 +00:00
|
|
|
|
2018-12-04 23:49:21 +00:00
|
|
|
// // addedQuotes returns all quotes that the user with the given user ID published.
|
|
|
|
// func addedQuotes(userID string) []*arn.Quote {
|
|
|
|
// return arn.FilterQuotes(func(quote *arn.Quote) bool {
|
|
|
|
// return !quote.IsDraft && len(quote.Text.English) > 0 && quote.CreatedBy == userID
|
|
|
|
// })
|
|
|
|
// }
|