Set correct content-type for ActivityPub JSON (#4592)
This commit is contained in:
parent
4e75f0d889
commit
6df8bd277b
9 changed files with 16 additions and 8 deletions
|
@ -7,7 +7,7 @@ class ActivityPub::OutboxesController < Api::BaseController
|
|||
@statuses = @account.statuses.permitted_for(@account, current_account).paginate_by_max_id(20, params[:max_id], params[:since_id])
|
||||
@statuses = cache_collection(@statuses, Status)
|
||||
|
||||
render json: outbox_presenter, serializer: ActivityPub::CollectionSerializer, adapter: ActivityPub::Adapter
|
||||
render json: outbox_presenter, serializer: ActivityPub::CollectionSerializer, adapter: ActivityPub::Adapter, content_type: 'application/activity+json'
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue