]>
cat aescling's git repositories - mastodon.git/blob - app/controllers/about_controller.rb
1 # frozen_string_literal: true
3 class AboutController
< ApplicationController
6 before_action
:require_open_federation!
, only
: [:show, :more]
7 before_action
:set_body_classes, only
: :show
8 before_action
:set_instance_presenter
9 before_action
:set_expires_in
11 skip_before_action
:require_functional!
, only
: [:more, :terms]
16 flash
.now
[:notice] = I18n
.t('about.instance_actor_flash') if params
[:instance_actor]
23 def require_open_federation!
24 not_found
if whitelist_mode
?
28 User
.new
.tap
do |user
|
30 user
.build_invite_request
34 helper_method
:new_user
36 def set_instance_presenter
37 @instance_presenter = InstancePresenter
.new
45 expires_in
0, public
: true
This page took 0.111135 seconds and 5 git commands to generate.