From 9a90d8a7b4f874c8ad2c60c41de6d3669f8799c4 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 1 Apr 2018 18:20:17 +0900 Subject: [PATCH] Fix type annotation --- src/server/activitypub/post.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/activitypub/post.ts b/src/server/activitypub/post.ts index 4fb3a1319b..261d7ca4a5 100644 --- a/src/server/activitypub/post.ts +++ b/src/server/activitypub/post.ts @@ -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).includes(accepted)) { + if (!(['application/activity+json', 'application/ld+json'] as any[]).includes(accepted)) { return next(); }