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