diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-08-14 04:16:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-14 04:16:43 +0200 |
commit | 6df8bd277b52b3ac025597ec08ee9e342a8eb32c (patch) | |
tree | 965a65c8d6c99f4fa153a27fae5c8e6e1fceeb42 /app/controllers/activitypub | |
parent | 4e75f0d88932511ad154773f4c77a485367ed36c (diff) |
Set correct content-type for ActivityPub JSON (#4592)
Diffstat (limited to 'app/controllers/activitypub')
-rw-r--r-- | app/controllers/activitypub/outboxes_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/activitypub/outboxes_controller.rb b/app/controllers/activitypub/outboxes_controller.rb index 30b91f370..9f97ff622 100644 --- a/app/controllers/activitypub/outboxes_controller.rb +++ b/app/controllers/activitypub/outboxes_controller.rb @@ -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 |