Added/removed some functionality to better handle requests/load
- Removed status counting in dashboard for admins - Added limit to notifications to only 7 days ago - Removed ability for non-logged in users to view group, group-collection timelines - Limited account realtime search on compose, list, chat actions - Removed fetching of user suggestions - Removed fetching of shortcuts - Removed featured groups, user suggestions timeline injections - Removed group featured panel from explore layout for non logged in users - Removed media gallery panel from profile layout - Removed lists, suggestions, groups panel from home page - Removed user suggestions to list page - Updated pro_timelie in status.rb to find only from 1 hour ago - Updated home timeline to not include groups and to find only latest from 5 days ago - Removed search for non logged in users
This commit is contained in:
@@ -36,7 +36,7 @@ class Api::V1::NotificationsController < Api::BaseController
|
||||
end
|
||||
|
||||
def paginated_notifications
|
||||
browserable_account_notifications.paginate_by_id(
|
||||
browserable_account_notifications.latest.paginate_by_id(
|
||||
limit_param(DEFAULT_NOTIFICATIONS_LIMIT),
|
||||
params_slice(:max_id, :since_id, :min_id)
|
||||
)
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Api::V1::SearchController < EmptyController
|
||||
class Api::V1::SearchController < Api::BaseController
|
||||
before_action :require_user!
|
||||
|
||||
RESULTS_LIMIT = 25
|
||||
|
||||
def index
|
||||
|
||||
@@ -13,7 +13,7 @@ class Api::V1::Timelines::GroupCollectionController < Api::BaseController
|
||||
each_serializer: REST::StatusSerializer,
|
||||
relationships: StatusRelationshipsPresenter.new(@statuses, current_account.id)
|
||||
else
|
||||
render json: @statuses, each_serializer: REST::StatusSerializer
|
||||
render json: [], each_serializer: REST::StatusSerializer
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -54,7 +54,8 @@ class Api::V1::Timelines::GroupController < Api::BaseController
|
||||
FeedManager.instance.filter?(:home, status, current_account.id)
|
||||
}
|
||||
else
|
||||
SortingQueryBuilder.new.call(@sort_type, @group, params[:page])
|
||||
return []
|
||||
# SortingQueryBuilder.new.call(@sort_type, @group, params[:page])
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -9,7 +9,7 @@ class Api::V1::Timelines::ListController < Api::BaseController
|
||||
after_action :insert_pagination_headers, unless: -> { @statuses.empty? }
|
||||
|
||||
def show
|
||||
render json: @statuses,
|
||||
render json: [],
|
||||
each_serializer: REST::StatusSerializer,
|
||||
relationships: StatusRelationshipsPresenter.new(@statuses, current_user.account_id)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user