This commit is contained in:
syuilo 2018-04-13 14:29:01 +09:00
parent c9789557c0
commit 4899f3af24

View File

@ -44,7 +44,7 @@ router.post('/users/:user/inbox', ctx => {
router.get('/notes/:note', async (ctx, next) => {
const accepted = ctx.accepts('html', 'application/activity+json', 'application/ld+json');
if (!['application/activity+json', 'application/ld+json'].includes(accepted as string)) {
next();
await next();
return;
}