diff options
| author | rinsuki <428rinsuki+git@gmail.com> | 2018-06-17 17:21:16 +0900 |
|---|---|---|
| committer | rinsuki <428rinsuki+git@gmail.com> | 2018-06-17 17:21:16 +0900 |
| commit | 1f1ed2da4c87120fc0018d47c51e6571e4ad3b84 (patch) | |
| tree | 444183dfdcef54e8ae018e83a44974f7ffcf4d47 /src/server | |
| parent | Merge pull request #1732 from rinsuki/fix/1731 (diff) | |
| download | sharkey-1f1ed2da4c87120fc0018d47c51e6571e4ad3b84.tar.gz sharkey-1f1ed2da4c87120fc0018d47c51e6571e4ad3b84.tar.bz2 sharkey-1f1ed2da4c87120fc0018d47c51e6571e4ad3b84.zip | |
minor fix
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/activitypub.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/activitypub.ts b/src/server/activitypub.ts index f406328dcb..1fbc621e91 100644 --- a/src/server/activitypub.ts +++ b/src/server/activitypub.ts @@ -1,5 +1,4 @@ import * as mongo from 'mongodb'; -import * as Koa from 'koa'; import * as Router from 'koa-router'; const json = require('koa-json-body'); const httpSignature = require('http-signature'); @@ -20,7 +19,7 @@ const router = new Router(); //#region Routing -function inbox(ctx: Koa.Context) { +function inbox(ctx: Router.IRouterContext) { let signature; ctx.req.headers.authorization = 'Signature ' + ctx.req.headers.signature; |