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 := arn.FilterQuotes(func(quote *arn.Quote) bool {
return !quote.IsDraft && len(quote.Description) > 0 && quote.CharacterID == character.ID
})
quotes := character.Quotes()
arn.SortQuotesPopularFirst(quotes)
// Set OpenGraph attributes