diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-01 22:09:25 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-01 22:09:25 +0900 |
| commit | 8be069083d1f004a3187fe40f1ec12478b7fa680 (patch) | |
| tree | 5b975499890b23dd6bb6cb4722b3450dbb0e097c /src/server | |
| parent | Refactor (diff) | |
| download | sharkey-8be069083d1f004a3187fe40f1ec12478b7fa680.tar.gz sharkey-8be069083d1f004a3187fe40f1ec12478b7fa680.tar.bz2 sharkey-8be069083d1f004a3187fe40f1ec12478b7fa680.zip | |
Fix type annotation
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/activitypub/user.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/activitypub/user.ts b/src/server/activitypub/user.ts index 8e8deca4ae..cfda409e2c 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<any>).includes(accepted)) { + if ((['application/activity+json', 'application/ld+json'] as any[]).includes(accepted)) { respond(req, res, next); } else { next(); |