[sorting query builder] from 30 days to 5 years for date_limit

This commit is contained in:
Fosco Marotto 2020-12-30 12:04:28 -05:00
parent 6821909a3f
commit 381a5bacc6
1 changed files with 3 additions and 3 deletions

View File

@ -1,13 +1,13 @@
# frozen_string_literal: true
class SortingQueryBuilder < BaseService
class SortingQueryBuilder < BaseService
def call(sort_type, group = nil, page = 1)
limit = 20
min_likes = 5
min_reblogs = 2
min_replies = 1
date_limit = 30.days.ago
date_limit = 5.years.ago
max_page = 8
case sort_type
@ -66,4 +66,4 @@ class SortingQueryBuilder < BaseService
end
end
end
end