Commit 25297df3 authored by mgabdev's avatar mgabdev

Updated Group/Collection,Pins controllers to require user for API

• Updated:
- Group/Collection,Pins controllers to require user for API
parent 6e475f66
# 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
......
# 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
......
# frozen_string_literal: true
class Api::V1::Timelines::GroupPinsController < Api::BaseController
before_action :require_user!
before_action :set_group
before_action :set_statuses
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment