From be11447d4e47270468d4fba5675da1d5ee77b38f Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Mon, 26 Feb 2018 12:25:35 +0100 Subject: [PATCH] Removed irrelevant filter --- pages/quotes/best.go | 4 ++-- pages/quotes/quotes.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/quotes/best.go b/pages/quotes/best.go index 4ed46a77..f270b691 100644 --- a/pages/quotes/best.go +++ b/pages/quotes/best.go @@ -15,7 +15,7 @@ func Best(ctx *aero.Context) string { user := utils.GetUser(ctx) quotes := arn.FilterQuotes(func(track *arn.Quote) bool { - return !track.IsDraft && len(track.Text.English) > 0 + return !track.IsDraft }) arn.SortQuotesPopularFirst(quotes) @@ -41,7 +41,7 @@ func BestFrom(ctx *aero.Context) string { } allQuotes := arn.FilterQuotes(func(track *arn.Quote) bool { - return !track.IsDraft && len(track.Text.English) > 0 + return !track.IsDraft }) if index < 0 || index >= len(allQuotes) { diff --git a/pages/quotes/quotes.go b/pages/quotes/quotes.go index e53d8322..e65fa1d5 100644 --- a/pages/quotes/quotes.go +++ b/pages/quotes/quotes.go @@ -17,7 +17,7 @@ func Latest(ctx *aero.Context) string { user := utils.GetUser(ctx) quotes := arn.FilterQuotes(func(track *arn.Quote) bool { - return !track.IsDraft && len(track.Text.English) > 0 + return !track.IsDraft }) arn.SortQuotesLatestFirst(quotes) @@ -43,7 +43,7 @@ func LatestFrom(ctx *aero.Context) string { } allQuotes := arn.FilterQuotes(func(track *arn.Quote) bool { - return !track.IsDraft && len(track.Text.English) > 0 + return !track.IsDraft }) if index < 0 || index >= len(allQuotes) {