diff options
author | ThibG <thib@sitedethib.com> | 2019-07-30 15:40:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-30 15:40:28 +0200 |
commit | 4ecfa8f298399d9857737f212fc8f5767ffa7c6d (patch) | |
tree | 16896fc6f86c006ed6aba93db23cdec84c11bee3 /app/controllers/about_controller.rb | |
parent | f48c7689d230b915ed740a4774736bd5998cbc66 (diff) | |
parent | d8097ecd2f787aa0a065a753146151074eef55c6 (diff) |
Merge pull request #1183 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/controllers/about_controller.rb')
-rw-r--r-- | app/controllers/about_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/about_controller.rb b/app/controllers/about_controller.rb index 179f013b5..f41e52aae 100644 --- a/app/controllers/about_controller.rb +++ b/app/controllers/about_controller.rb @@ -4,6 +4,7 @@ class AboutController < ApplicationController before_action :set_pack layout 'public' + before_action :require_open_federation!, only: [:show, :more] before_action :set_body_classes, only: :show before_action :set_instance_presenter before_action :set_expires_in @@ -20,6 +21,10 @@ class AboutController < ApplicationController private + def require_open_federation! + not_found if whitelist_mode? + end + def new_user User.new.tap do |user| user.build_account |