]> cat aescling's git repositories - mastodon.git/commitdiff
Fix reverse-proxy caching of instance actor object (#11561)
authorThibG <thib@sitedethib.com>
Tue, 13 Aug 2019 13:30:37 +0000 (15:30 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 13 Aug 2019 13:30:37 +0000 (15:30 +0200)
app/controllers/instance_actors_controller.rb

index 41f33602e690a7e898e65192215949cecf6791ed..6f02d6a358f00cea153da012ad0f7a11de9fafea 100644 (file)
@@ -3,6 +3,8 @@
 class InstanceActorsController < ApplicationController
   include AccountControllerConcern
 
+  skip_around_action :set_locale
+
   def show
     expires_in 10.minutes, public: true
     render json: @account, content_type: 'application/activity+json', serializer: ActivityPub::ActorSerializer, adapter: ActivityPub::Adapter, fields: restrict_fields_to