diff options
author | ThibG <thib@sitedethib.com> | 2019-08-13 15:30:37 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-08-13 15:30:37 +0200 |
commit | 7ffec882ae79a49d6eed42361f7e8d5de99e1d74 (patch) | |
tree | 05fcf21b4ecc89b4bb00858ef5076131fcdf6afb | |
parent | 0e9668051e58b2ff4e48b82fa7cc17d385c7a5c9 (diff) |
Fix reverse-proxy caching of instance actor object (#11561)
-rw-r--r-- | app/controllers/instance_actors_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/instance_actors_controller.rb b/app/controllers/instance_actors_controller.rb index 41f33602e..6f02d6a35 100644 --- a/app/controllers/instance_actors_controller.rb +++ b/app/controllers/instance_actors_controller.rb @@ -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 |