about summary refs log tree commit diff
path: root/app/controllers/following_accounts_controller.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-08-12 22:26:07 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-08-12 22:26:07 +0200
commit5f63339744eecd75b1065135559ddbe688636be1 (patch)
tree0ec4294057d064e2f8b47280ceafd5b5add498da /app/controllers/following_accounts_controller.rb
parent789cb3c028a5394973830ea003757b5e1ac9f33a (diff)
Fix more ActivityPub queries setting cookies and preventing caching (#11557)
Diffstat (limited to 'app/controllers/following_accounts_controller.rb')
-rw-r--r--app/controllers/following_accounts_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/following_accounts_controller.rb b/app/controllers/following_accounts_controller.rb
index 07d62f7dd..653d9a486 100644
--- a/app/controllers/following_accounts_controller.rb
+++ b/app/controllers/following_accounts_controller.rb
@@ -7,6 +7,8 @@ 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 }
+
   def index
     respond_to do |format|
       format.html do