0
0
Fork 0

Cache featured collections, as well as outbox, followers and following (#10467)

This commit is contained in:
ThibG 2019-04-04 01:30:44 +02:00 committed by Eugen Rochko
parent d4882aa64a
commit cc6e3c3900
4 changed files with 33 additions and 5 deletions

View file

@ -7,8 +7,14 @@ class ActivityPub::OutboxesController < Api::BaseController
before_action :set_account
before_action :set_statuses
before_action :set_cache_headers
def show
unless page_requested?
skip_session!
expires_in 1.minute, public: true
end
render json: outbox_presenter, serializer: ActivityPub::OutboxSerializer, adapter: ActivityPub::Adapter, content_type: 'application/activity+json'
end