diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-09-28 01:33:27 +0200 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-20 23:50:46 -0600 |
commit | 1ddb4abc704476e56ed97826365a32f21df3c78e (patch) | |
tree | bb87c749c721caec8a64b46325673492d1c99d19 /app/controllers/following_accounts_controller.rb | |
parent | b6c6840ba337ed77d4488dd013098df30100b74f (diff) |
port tootsuite#11978 to monsterfork: Fix redirecting non-functional accounts on public pages
Fix #11969
Diffstat (limited to 'app/controllers/following_accounts_controller.rb')
-rw-r--r-- | app/controllers/following_accounts_controller.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/following_accounts_controller.rb b/app/controllers/following_accounts_controller.rb index 49f1f3218..8cab67ff5 100644 --- a/app/controllers/following_accounts_controller.rb +++ b/app/controllers/following_accounts_controller.rb @@ -7,6 +7,9 @@ class FollowingAccountsController < ApplicationController before_action :require_signature!, if: -> { request.format == :json && authorized_fetch_mode? } before_action :set_cache_headers + skip_around_action :set_locale, if: -> { request.format == :json } + skip_before_action :require_functional! + def index respond_to do |format| format.html do |