From 19a4926e1d756bd76fa0841f2b0fadfcb45d366b Mon Sep 17 00:00:00 2001 From: a Date: Fri, 23 Dec 2022 08:54:44 -0600 Subject: [PATCH] minor reformat --- content/tech/activitypub/!media-type.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/tech/activitypub/!media-type.md b/content/tech/activitypub/!media-type.md index 73116c0..c59846b 100644 --- a/content/tech/activitypub/!media-type.md +++ b/content/tech/activitypub/!media-type.md @@ -4,7 +4,9 @@ AS2-Core says AP says -> MUST present the ActivityStreams object representation in response to `application/ld+json; profile="https://www.w3.org/ns/activitystreams"`, and SHOULD also present the ActivityStreams representation in response to `application/activity+json` as well. The client MUST specify an Accept header with the `application/ld+json; profile="https://www.w3.org/ns/activitystreams"` media type in order to retrieve the activity. +> POST requests (eg. to the inbox) MUST be made with a Content-Type of `application/ld+json; profile="https://www.w3.org/ns/activitystreams"` and GET requests with an Accept header of `application/ld+json; profile="https://www.w3.org/ns/activitystreams"`. Servers SHOULD interpret a Content-Type or Accept header of `application/activity+json` as equivalent + +> MUST present the ActivityStreams object representation in response to `application/ld+json; profile="https://www.w3.org/ns/activitystreams"`, and SHOULD also present the ActivityStreams representation in response to `application/activity+json` as well. The client MUST specify an Accept header with the `application/ld+json; profile="https://www.w3.org/ns/activitystreams"` media type in order to retrieve the activity basically as2 prefers activity+json while ap prefers ld+json with the activitystreams profile. ap is an extension to as2 so i guess ap takes precedence here...