Any ideas why Mastodon’s POST on my ActivityPub server’s Inbox endpoint would have an empty object for the body when I’m expecting a Follow activity ActivityStream object? (Node.js/Express)
(I’m probably doing something silly.)
@Gargron Figured it out – it was a content-type issue: the JSON body parser in Express (Node) parses only 'application/json' by default. You have to specifically set it to also parse 'application/activity+json'. I had incorrectly assumed (never assume, etc.) that the default would be a wildcard on *json.