diff options
author | Thibaut Girka <thib@sitedethib.com> | 2020-02-19 23:04:18 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2020-02-19 23:04:18 +0100 |
commit | e03700240111f42350902387502025fe254fd466 (patch) | |
tree | 3a89540465fddb68791cdcffbc551f5cc6123b41 /app/controllers/accounts_controller.rb | |
parent | 955f838f9df9a6af4ba2ab51716def6093698c28 (diff) | |
parent | ff3a11d01d262c0a37cc1e33db2013b19729fb9d (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/controllers/accounts_controller.rb')
-rw-r--r-- | app/controllers/accounts_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index c4ee22847..ee48da177 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -9,7 +9,7 @@ class AccountsController < ApplicationController before_action :set_cache_headers before_action :set_body_classes - skip_around_action :set_locale, if: -> { [:json, :rss].include?(request.format) } + skip_around_action :set_locale, if: -> { [:json, :rss].include?(request.format&.to_sym) } skip_before_action :require_functional! def show |