mirror of
https://github.com/dariusk/express-activitypub.git
synced 2025-09-01 02:33:52 +00:00
Update message.js
Need to specify a `Content-Type` of `application/activity+json` for Mastodon to accept this
This commit is contained in:
parent
0605621b2f
commit
41f98af3e6
1 changed files with 1 additions and 0 deletions
|
@ -14,6 +14,7 @@ router.get('/:guid', function (req, res) {
|
|||
return res.status(404).send(`No record found for ${guid}.`);
|
||||
}
|
||||
else {
|
||||
res.set('Content-Type', 'application/activity+json');
|
||||
res.json(JSON.parse(result.message));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue