Rewritten infinite scrolling
This commit is contained in:
10
pages/quotes/fetch.go
Normal file
10
pages/quotes/fetch.go
Normal file
@ -0,0 +1,10 @@
|
||||
package quotes
|
||||
|
||||
import "github.com/animenotifier/arn"
|
||||
|
||||
// fetchAll returns all quotes
|
||||
func fetchAll() []*arn.Quote {
|
||||
return arn.FilterQuotes(func(quote *arn.Quote) bool {
|
||||
return !quote.IsDraft && len(quote.Text.English) > 0
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user