Verified Commit 7373a5cf authored by Aral Balkan's avatar Aral Balkan
Browse files

Add note about content types to ActivityPub spike notes

parent 5d405fea
......@@ -42,6 +42,14 @@ Evan Prodromou has just created a project to help unit test ActivityPub implemen
https://gitlab.com/aral/activitypub-mock
### Content-Type note
The content type for the JSON body parser in Express must be set to the ActivityPub content types or the body of the request will come in empty. e.g.,
```javascript
app.use(express.json({type: ['application/json', 'application/activity+json', 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"']}))
```
### Perceived behaviour from Mastodon interactions
#### Initial actor request flow
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment