Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept application/ld+json; profile="https://www.w3.org/ns/activitystreams" #129

Open
silverpill opened this issue Dec 29, 2021 · 1 comment
Labels
ActivityPub Related to ActivityPub enhancement New feature or request

Comments

@silverpill
Copy link

Currently /users/{id} and other endpoints return ActivityStreams object only when first mime type in Accept header of the request is set to application/activity+json.

However, according to ActivityPub spec objects must be retrieved with an Accept header of application/ld+json; profile="https://www.w3.org/ns/activitystreams":

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 (see also 3.2 Retrieving objects) 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 to application/ld+json; profile="https://www.w3.org/ns/activitystreams" for server-to-server interactions.

-- https://www.w3.org/TR/activitypub/#server-to-server-interactions

This means BirdsiteLIVE is not compatible with spec-compliant servers. I think application/ld+json; profile="https://www.w3.org/ns/activitystreams" type should be supported too, in addition to application/activity+json.

@NicolasConstant
Copy link
Owner

Hi! Thanks for the heads up, I'll support this in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ActivityPub Related to ActivityPub enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants