Skip to content

Commit

Permalink
Fix reverse-proxy caching of instance actor object (mastodon#11561)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored and hiyuki2578 committed Oct 2, 2019
1 parent 13bfd93 commit 4176fd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/instance_actors_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4176fd8

Please sign in to comment.