Removed irrelevant filter

This commit is contained in:
2018-02-26 12:25:35 +01:00
parent 1393de1c40
commit be11447d4e
2 changed files with 4 additions and 4 deletions

View File

@ -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) {