Reverting home timeline changes

This commit is contained in:
Fosco Marotto
2021-01-21 18:05:24 -05:00
parent 0369a1b9fb
commit e9cf46b4bc
7 changed files with 26 additions and 36 deletions

View File

@@ -44,10 +44,9 @@ class Api::V1::Timelines::ExploreController < Api::BaseController
def explore_statuses
if current_account
SortingQueryBuilder.new.call(@sort_type, nil, params[:page], current_account)
.reject {|status|
FeedManager.instance.filter?(:home, status, current_account.id)
}
SortingQueryBuilder.new.call(@sort_type, nil, params[:page]).reject {|status|
FeedManager.instance.filter?(:home, status, current_account.id)
}
else
page = [params[:page].to_i.abs, MIN_UNAUTHENTICATED_PAGES].min
SortingQueryBuilder.new.call(@sort_type, nil, page)