[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

View File

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