forked from FoundKeyGang/FoundKey
Fix bug
This commit is contained in:
parent
8e0949c66f
commit
a9080f87ad
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ router.post('/users/:user/inbox', ctx => {
|
||||||
router.get('/notes/:note', async (ctx, next) => {
|
router.get('/notes/:note', async (ctx, next) => {
|
||||||
const accepted = ctx.accepts('html', 'application/activity+json', 'application/ld+json');
|
const accepted = ctx.accepts('html', 'application/activity+json', 'application/ld+json');
|
||||||
if (!['application/activity+json', 'application/ld+json'].includes(accepted as string)) {
|
if (!['application/activity+json', 'application/ld+json'].includes(accepted as string)) {
|
||||||
next();
|
await next();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue