-
-
Notifications
You must be signed in to change notification settings - Fork 361
Closed
Labels
Milestone
Description
Describe the bug
According to ActivityPub specification, servers should respond with ActivityStreams object representation to requests having application/ld+json; profile="https://www.w3.org/ns/activitystreams"
in Accept header, but apparently only application/activity+json
is supported
Servers ... 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.
Line 1123 in b7f732b
if strings.Contains(accept, "application/activity+json") { |
Steps to reproduce (if necessary)
curl -H 'Accept: application/ld+json; profile="https://www.w3.org/ns/activitystreams"' https://***/api/posts/***
The server returns the standard API response:
{
"code": 200,
"data": {
...
}
}
Expected behavior
Server should return ActivityStreams object representation.