Class: NewsmastMastodon::Api::V1::Timelines::ForYouCustomTimelineController
- Inherits:
-
Api::V1::Timelines::BaseController
- Object
- Api::V1::Timelines::BaseController
- NewsmastMastodon::Api::V1::Timelines::ForYouCustomTimelineController
- Defined in:
- app/controllers/newsmast_mastodon/api/v1/timelines/for_you_custom_timeline_controller.rb
Constant Summary collapse
- PERMITTED_PARAMS =
%i(local remote limit only_media grouped_admin_statuses exclude_direct_statuses exclude_replies).freeze
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
8 9 10 11 12 |
# File 'app/controllers/newsmast_mastodon/api/v1/timelines/for_you_custom_timeline_controller.rb', line 8 def show cache_if_unauthenticated! @statuses = load_statuses render json: @statuses, each_serializer: REST::StatusSerializer, relationships: StatusRelationshipsPresenter.new(@statuses, current_user&.account_id) end |