[sorting query builder] from 30 days to 5 years for date_limit
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user