From 47503cc74f7a282d6ce6e3eeeab5ae4c4bdde0a9 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sun, 25 Feb 2018 18:45:51 +0100 Subject: [PATCH] Reuse existing function --- pages/character/character.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pages/character/character.go b/pages/character/character.go index 2ed5ac1b..5b337a9c 100644 --- a/pages/character/character.go +++ b/pages/character/character.go @@ -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