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/tags_controller.rb | |
parent | 4e75f0d88932511ad154773f4c77a485367ed36c (diff) |
Set correct content-type for ActivityPub JSON (#4592)
Diffstat (limited to 'app/controllers/tags_controller.rb')
-rw-r--r-- | app/controllers/tags_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index 2cd85e185..3001b2ee3 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb @@ -12,7 +12,7 @@ class TagsController < ApplicationController format.html format.json do - render json: collection_presenter, serializer: ActivityPub::CollectionSerializer, adapter: ActivityPub::Adapter + render json: collection_presenter, serializer: ActivityPub::CollectionSerializer, adapter: ActivityPub::Adapter, content_type: 'application/activity+json' end end end |