Thanks for the comment.
-
Thanks for the comment. It's something one needs to investigate / think about. Now some thoughts:
As usual it is too much to ask from W3C ActivityPub to provide a single way to do stuff.
After a bit of research: Nodebb and Sharkey currently use a
<link rel="alternate" type="application/activity+json"
in their head to link to the ActivityPub representation. I personally also like it because it's easier to parse, read, write.I'm deploying a new cattle_grid version right now to see what content-type is actually used.
See also issue#60.
-
Thanks for the comment. It's something one needs to investigate / think about. Now some thoughts:
As usual it is too much to ask from W3C ActivityPub to provide a single way to do stuff.
After a bit of research: Nodebb and Sharkey currently use a
<link rel="alternate" type="application/activity+json"
in their head to link to the ActivityPub representation. I personally also like it because it's easier to parse, read, write.I'm deploying a new cattle_grid version right now to see what content-type is actually used.
See also issue#60.
@helge ActivityPub requires
application/ld+json; profile="https://www.w3.org/ns/activitystreams"
https://www.w3.org/TR/activitypub/#retrieving-objects
The shorter form
application/activity+json
is nicer, but media type is one of the things about which specification is not ambiguous, so I always use the required one.application/activity+json
is (or was) used by Mastodon, so of course everyone copy-pasted it into their projects.