Fix type annotation
This commit is contained in:
parent
2e8e5f68dd
commit
9a90d8a7b4
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ app.disable('x-powered-by');
|
||||||
|
|
||||||
app.get('/@:user/:post', async (req, res, next) => {
|
app.get('/@:user/:post', async (req, res, next) => {
|
||||||
const accepted = req.accepts(['html', 'application/activity+json', 'application/ld+json']);
|
const accepted = req.accepts(['html', 'application/activity+json', 'application/ld+json']);
|
||||||
if (!(['application/activity+json', 'application/ld+json'] as Array<any>).includes(accepted)) {
|
if (!(['application/activity+json', 'application/ld+json'] as any[]).includes(accepted)) {
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue