about summary refs log tree commit diff
path: root/app/controllers/api
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-08-11 22:59:40 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-08-11 22:59:40 +0200
commit646f96d4486499416c9a369ad8886e09e453462c (patch)
treeb9bd8a489576ff9ff3ac45441369d997c43ebf55 /app/controllers/api
parentaebefc7ce9cff913c4f04bb94ebda428e755ecad (diff)
Fix ActivityPub and REST API queries setting cookies and preventing caching (#11539)
Regression from #8657
Diffstat (limited to 'app/controllers/api')
-rw-r--r--app/controllers/api/base_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/api/base_controller.rb b/app/controllers/api/base_controller.rb
index 109e38ffa..de8fff30e 100644
--- a/app/controllers/api/base_controller.rb
+++ b/app/controllers/api/base_controller.rb
@@ -14,6 +14,8 @@ class Api::BaseController < ApplicationController
 
   protect_from_forgery with: :null_session
 
+  skip_around_action :set_locale
+
   rescue_from ActiveRecord::RecordInvalid, Mastodon::ValidationError do |e|
     render json: { error: e.to_s }, status: 422
   end