Browse Source

Merge branch 'closed-social-v3' of github.com:closed-social/mastodon into closed-social-v3

pull/4/head
欧醚 4 years ago
parent
commit
09688a0535
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      app/controllers/about_controller.rb
  2. +1
    -1
      app/controllers/home_controller.rb

+ 1
- 1
app/controllers/about_controller.rb View File

@ -3,7 +3,7 @@
class AboutController < ApplicationController class AboutController < ApplicationController
layout 'public' layout 'public'
before_action :require_open_federation!, only: [:show, :more]
# before_action :require_open_federation!, only: [:show, :more]
before_action :set_body_classes, only: :show before_action :set_body_classes, only: :show
before_action :set_instance_presenter before_action :set_instance_presenter
before_action :set_expires_in, only: [:show, :more, :terms] before_action :set_expires_in, only: [:show, :more, :terms]

+ 1
- 1
app/controllers/home_controller.rb View File

@ -39,7 +39,7 @@ class HomeController < ApplicationController
end end
def default_redirect_path def default_redirect_path
if request.path.start_with?('/web') || whitelist_mode?
if request.path.start_with?('/web') # || whitelist_mode?
new_user_session_path new_user_session_path
elsif single_user_mode? elsif single_user_mode?
short_account_path(Account.local.without_suspended.where('id > 0').first) short_account_path(Account.local.without_suspended.where('id > 0').first)

Loading…
Cancel
Save