about summary refs log tree commit diff
path: root/app/controllers/accounts_controller.rb
diff options
context:
space:
mode:
authorReverite <github@reverite.sh>2019-08-13 15:45:40 -0700
committerReverite <github@reverite.sh>2019-08-13 15:45:40 -0700
commit2e221bd5b6472d1eecb654b3518af7886d3dadaf (patch)
treeafb9e3a86ba3a93b6b5f04cdec6070351992fed4 /app/controllers/accounts_controller.rb
parent9528d3eda280ffac20a18c6f21bfc51f594e2c86 (diff)
parentb859eb001717dfc62aebb8eba47b84c75aebe4ef (diff)
Merge branch 'glitch' into production
Diffstat (limited to 'app/controllers/accounts_controller.rb')
-rw-r--r--app/controllers/accounts_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb
index 1aed1af8d..1a876b831 100644
--- a/app/controllers/accounts_controller.rb
+++ b/app/controllers/accounts_controller.rb
@@ -9,6 +9,8 @@ class AccountsController < ApplicationController
   before_action :set_cache_headers
   before_action :set_body_classes
 
+  skip_around_action :set_locale, if: -> { request.format == :json }
+
   def show
     respond_to do |format|
       format.html do