[explore] Remove group posts from explore page.

This commit is contained in:
Fosco Marotto
2021-01-25 02:35:10 -05:00
parent 4adbadddaa
commit 81489b7a17
2 changed files with 12 additions and 4 deletions

View File

@@ -44,12 +44,12 @@ class Api::V1::Timelines::ExploreController < Api::BaseController
def explore_statuses
if current_account
SortingQueryBuilder.new.call(@sort_type, nil, params[:page]).reject {|status|
SortingQueryBuilder.new.call(@sort_type, nil, params[:page], nil, "explore").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)
SortingQueryBuilder.new.call(@sort_type, nil, page, nil, "explore")
end
end