summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-06-17 17:21:50 +0900
committerGitHub <noreply@github.com>2018-06-17 17:21:50 +0900
commitcbddaf1d19c89e4eaa9e31ff046356236b6b8336 (patch)
tree444183dfdcef54e8ae018e83a44974f7ffcf4d47 /src
parentMerge pull request #1732 from rinsuki/fix/1731 (diff)
parentminor fix (diff)
downloadsharkey-cbddaf1d19c89e4eaa9e31ff046356236b6b8336.tar.gz
sharkey-cbddaf1d19c89e4eaa9e31ff046356236b6b8336.tar.bz2
sharkey-cbddaf1d19c89e4eaa9e31ff046356236b6b8336.zip
Merge pull request #1735 from rinsuki/fix/minor-fix-201806171721
minor fix
Diffstat (limited to 'src')
-rw-r--r--src/server/activitypub.ts3
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;