From 381a5bacc6d5402aec7613b35bf0062c4140c8e9 Mon Sep 17 00:00:00 2001 From: Fosco Marotto Date: Wed, 30 Dec 2020 12:04:28 -0500 Subject: [PATCH] [sorting query builder] from 30 days to 5 years for date_limit --- app/lib/sorting_query_builder.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/lib/sorting_query_builder.rb b/app/lib/sorting_query_builder.rb index ed5b5a7d..1e323577 100644 --- a/app/lib/sorting_query_builder.rb +++ b/app/lib/sorting_query_builder.rb @@ -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 \ No newline at end of file +end