mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-24 11:38:07 +01:00
1488be7d96
Conflicts: - app/controllers/home_controller.rb - app/controllers/shares_controller.rb - app/javascript/packs/public.js - app/models/status.rb - app/serializers/initial_state_serializer.rb - app/views/home/index.html.haml - app/views/layouts/public.html.haml - app/views/public_timelines/show.html.haml - app/views/shares/show.html.haml - app/views/tags/show.html.haml - config/initializers/content_security_policy.rb - config/locales/en.yml - config/webpack/shared.js - package.json
31 lines
597 B
Ruby
31 lines
597 B
Ruby
# frozen_string_literal: true
|
|
|
|
class PublicTimelinesController < ApplicationController
|
|
before_action :set_pack
|
|
layout 'public'
|
|
|
|
before_action :authenticate_user!, if: :whitelist_mode?
|
|
before_action :require_enabled!
|
|
before_action :set_body_classes
|
|
before_action :set_instance_presenter
|
|
|
|
def show; end
|
|
|
|
private
|
|
|
|
def require_enabled!
|
|
not_found unless Setting.timeline_preview
|
|
end
|
|
|
|
def set_body_classes
|
|
@body_classes = 'with-modals'
|
|
end
|
|
|
|
def set_instance_presenter
|
|
@instance_presenter = InstancePresenter.new
|
|
end
|
|
|
|
def set_pack
|
|
use_pack 'about'
|
|
end
|
|
end
|