Ver código fonte

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

master^2
ThibG 4 anos atrás
committed by Eugen Rochko
pai
commit
7ffec882ae
1 arquivos alterados com 2 adições e 0 exclusões
  1. +2
    -0
      app/controllers/instance_actors_controller.rb

+ 2
- 0
app/controllers/instance_actors_controller.rb Ver arquivo

@@ -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


Carregando…
Cancelar
Salvar