Reuse existing function

This commit is contained in:
Eduard Urbach 2018-02-25 18:45:51 +01:00
parent dddb066b0d
commit 47503cc74f

View File

@ -37,10 +37,7 @@ func Get(ctx *aero.Context) string {
}) })
// Quotes // Quotes
quotes := arn.FilterQuotes(func(quote *arn.Quote) bool { quotes := character.Quotes()
return !quote.IsDraft && len(quote.Description) > 0 && quote.CharacterID == character.ID
})
arn.SortQuotesPopularFirst(quotes) arn.SortQuotesPopularFirst(quotes)
// Set OpenGraph attributes // Set OpenGraph attributes