From 8be069083d1f004a3187fe40f1ec12478b7fa680 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 1 Apr 2018 22:09:25 +0900 Subject: [PATCH] Fix type annotation --- src/server/activitypub/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/activitypub/user.ts b/src/server/activitypub/user.ts index 8e8deca4a..cfda409e2 100644 --- a/src/server/activitypub/user.ts +++ b/src/server/activitypub/user.ts @@ -17,7 +17,7 @@ app.disable('x-powered-by'); app.get('/@:user', (req, res, next) => { const accepted = req.accepts(['html', 'application/activity+json', 'application/ld+json']); - if ((['application/activity+json', 'application/ld+json'] as Array).includes(accepted)) { + if ((['application/activity+json', 'application/ld+json'] as any[]).includes(accepted)) { respond(req, res, next); } else { next();