mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-21 12:05:07 +01:00
8b69a66380
* Add "why do you want to join" field to invite requests Fix #10512 * Remove unused translations * Fix broken registrations when no invite request text is submitted
31 lines
483 B
Ruby
31 lines
483 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AboutController < ApplicationController
|
|
layout 'public'
|
|
|
|
before_action :set_instance_presenter, only: [:show, :more, :terms]
|
|
|
|
def show
|
|
@hide_navbar = true
|
|
end
|
|
|
|
def more; end
|
|
|
|
def terms; end
|
|
|
|
private
|
|
|
|
def new_user
|
|
User.new.tap do |user|
|
|
user.build_account
|
|
user.build_invite_request
|
|
end
|
|
end
|
|
|
|
helper_method :new_user
|
|
|
|
def set_instance_presenter
|
|
@instance_presenter = InstancePresenter.new
|
|
end
|
|
end
|