1 # frozen_string_literal: true
3 class PublicTimelinesController
< ApplicationController
6 before_action
:authenticate_user!
, if: :whitelist_mode?
7 before_action
:require_enabled!
8 before_action
:set_body_classes
9 before_action
:set_instance_presenter
16 not_found
unless Setting
.timeline_preview
20 @body_classes = 'with-modals'
23 def set_instance_presenter
24 @instance_presenter = InstancePresenter
.new