mastodon/app/controllers/home_controller.rb
Eugen Rochko dd512c140b WIP
2021-02-16 03:33:32 +01:00

21 lines
408 B
Ruby

# frozen_string_literal: true
class HomeController < ApplicationController
before_action :authenticate_user!
include WebAppControllerConcern
def index; end
private
def default_redirect_path
if whitelist_mode?
new_user_session_path
elsif single_user_mode?
short_account_path(Account.local.without_suspended.where('id > 0').first)
else
about_path
end
end
end