mirror of
https://github.com/misskey-dev/misskey
synced 2024-12-01 08:18:51 +09:00
Fix type annotation
This commit is contained in:
parent
cd2c23e390
commit
8be069083d
@ -17,7 +17,7 @@ app.disable('x-powered-by');
|
|||||||
app.get('/@:user', (req, res, next) => {
|
app.get('/@:user', (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)) {
|
||||||
respond(req, res, next);
|
respond(req, res, next);
|
||||||
} else {
|
} else {
|
||||||
next();
|
next();
|
||||||
|
Loading…
Reference in New Issue
Block a user