Fix reverse-proxy caching of instance actor object (#11561)

lolsob-rspec
ThibG 2019-08-13 15:30:37 +02:00 committed by Eugen Rochko
parent 954840740e
commit cfc3fc6bcd
1 changed files with 2 additions and 0 deletions

View 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