Reuse existing function
This commit is contained in:
parent
dddb066b0d
commit
47503cc74f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user