0
0
Fork 0

Set correct content-type for ActivityPub JSON (#4592)

This commit is contained in:
Eugen Rochko 2017-08-14 04:16:43 +02:00 committed by GitHub
parent 4e75f0d889
commit 6df8bd277b
9 changed files with 16 additions and 8 deletions

View file

@ -17,7 +17,7 @@ class AccountsController < ApplicationController
end
format.json do
render json: @account, serializer: ActivityPub::ActorSerializer, adapter: ActivityPub::Adapter
render json: @account, serializer: ActivityPub::ActorSerializer, adapter: ActivityPub::Adapter, content_type: 'application/activity+json'
end
end
end