mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
Fix type annotation
This commit is contained in:
parent
d960e52690
commit
40c9adfef5
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) => {
|
||||
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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue