Removed irrelevant filter
This commit is contained in:
parent
1393de1c40
commit
be11447d4e
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user