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.
|
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.
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 onlyapplication/activity+jsonis supportedwritefreely/posts.go
Line 1123 in b7f732b
Steps to reproduce (if necessary)
The server returns the standard API response:
{ "code": 200, "data": { ... } }Expected behavior
Server should return ActivityStreams object representation.