Update message.js

Need to specify a `Content-Type` of `application/activity+json` for Mastodon to accept this
This commit is contained in:
Darius Kazemi 2025-03-02 18:56:10 -08:00 committed by GitHub
parent 0605621b2f
commit 41f98af3e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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));
}
}