]> cat aescling's git repositories - mastodon.git/blob - app/controllers/public_timelines_controller.rb
Change how unread announcements are handled (#13020)
[mastodon.git] / app / controllers / public_timelines_controller.rb
1 # frozen_string_literal: true
2
3 class PublicTimelinesController < ApplicationController
4 layout 'public'
5
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
10
11 def show; end
12
13 private
14
15 def require_enabled!
16 not_found unless Setting.timeline_preview
17 end
18
19 def set_body_classes
20 @body_classes = 'with-modals'
21 end
22
23 def set_instance_presenter
24 @instance_presenter = InstancePresenter.new
25 end
26 end
This page took 0.072151 seconds and 4 git commands to generate.