diff --git a/app/controllers/api/v1/timelines/group_collection_controller.rb b/app/controllers/api/v1/timelines/group_collection_controller.rb index 957e3e35..22b61003 100644 --- a/app/controllers/api/v1/timelines/group_collection_controller.rb +++ b/app/controllers/api/v1/timelines/group_collection_controller.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true class Api::V1::Timelines::GroupCollectionController < Api::BaseController + before_action :require_user! before_action :set_collection_type before_action :set_sort_type before_action :set_statuses @@ -71,8 +72,9 @@ class Api::V1::Timelines::GroupCollectionController < Api::BaseController FeedManager.instance.filter?(:home, status, current_account.id) } else - page = [params[:page].to_i.abs, MIN_UNAUTHENTICATED_PAGES].min - SortingQueryBuilder.new.call(@sort_type, @groupIds, page) + return [] + # page = [params[:page].to_i.abs, MIN_UNAUTHENTICATED_PAGES].min + # SortingQueryBuilder.new.call(@sort_type, @groupIds, page) end end diff --git a/app/controllers/api/v1/timelines/group_controller.rb b/app/controllers/api/v1/timelines/group_controller.rb index 764669b6..4bf9290b 100644 --- a/app/controllers/api/v1/timelines/group_controller.rb +++ b/app/controllers/api/v1/timelines/group_controller.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true class Api::V1::Timelines::GroupController < Api::BaseController + before_action :require_user! before_action :set_group before_action :set_sort_type before_action :set_statuses diff --git a/app/controllers/api/v1/timelines/group_pins_controller.rb b/app/controllers/api/v1/timelines/group_pins_controller.rb index bf8353d9..5a3aceb7 100644 --- a/app/controllers/api/v1/timelines/group_pins_controller.rb +++ b/app/controllers/api/v1/timelines/group_pins_controller.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true class Api::V1::Timelines::GroupPinsController < Api::BaseController + before_action :require_user! before_action :set_group before_action :set_statuses