From 42a14508f6ee3a9aef374e8a8695230b3839dcb2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 27 Sep 2019 05:50:34 +0900 Subject: Update dependencies :rocket: --- src/server/activitypub/featured.ts | 4 ++-- src/server/activitypub/followers.ts | 4 ++-- src/server/activitypub/following.ts | 4 ++-- src/server/activitypub/outbox.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/server/activitypub') diff --git a/src/server/activitypub/featured.ts b/src/server/activitypub/featured.ts index dae72f16b6..32871416d2 100644 --- a/src/server/activitypub/featured.ts +++ b/src/server/activitypub/featured.ts @@ -1,4 +1,4 @@ -import * as Router from 'koa-router'; +import * as Router from '@koa/router'; import config from '../../config'; import { renderActivity } from '../../remote/activitypub/renderer'; import renderOrderedCollection from '../../remote/activitypub/renderer/ordered-collection'; @@ -7,7 +7,7 @@ import renderNote from '../../remote/activitypub/renderer/note'; import { Users, Notes, UserNotePinings } from '../../models'; import { ensure } from '../../prelude/ensure'; -export default async (ctx: Router.IRouterContext) => { +export default async (ctx: Router.RouterContext) => { const userId = ctx.params.user; // Verify user diff --git a/src/server/activitypub/followers.ts b/src/server/activitypub/followers.ts index e48dc57f7a..0678ce6d24 100644 --- a/src/server/activitypub/followers.ts +++ b/src/server/activitypub/followers.ts @@ -1,4 +1,4 @@ -import * as Router from 'koa-router'; +import * as Router from '@koa/router'; import config from '../../config'; import $ from 'cafy'; import { ID } from '../../misc/cafy-id'; @@ -11,7 +11,7 @@ import { setResponseType } from '../activitypub'; import { Users, Followings } from '../../models'; import { LessThan } from 'typeorm'; -export default async (ctx: Router.IRouterContext) => { +export default async (ctx: Router.RouterContext) => { const userId = ctx.params.user; // Get 'cursor' parameter diff --git a/src/server/activitypub/following.ts b/src/server/activitypub/following.ts index 4a7314e0ce..36c7cafaa8 100644 --- a/src/server/activitypub/following.ts +++ b/src/server/activitypub/following.ts @@ -1,4 +1,4 @@ -import * as Router from 'koa-router'; +import * as Router from '@koa/router'; import config from '../../config'; import $ from 'cafy'; import { ID } from '../../misc/cafy-id'; @@ -12,7 +12,7 @@ import { Users, Followings } from '../../models'; import { LessThan, FindConditions } from 'typeorm'; import { Following } from '../../models/entities/following'; -export default async (ctx: Router.IRouterContext) => { +export default async (ctx: Router.RouterContext) => { const userId = ctx.params.user; // Get 'cursor' parameter diff --git a/src/server/activitypub/outbox.ts b/src/server/activitypub/outbox.ts index 118d8f00a9..aa6053d479 100644 --- a/src/server/activitypub/outbox.ts +++ b/src/server/activitypub/outbox.ts @@ -1,4 +1,4 @@ -import * as Router from 'koa-router'; +import * as Router from '@koa/router'; import config from '../../config'; import $ from 'cafy'; import { ID } from '../../misc/cafy-id'; @@ -17,7 +17,7 @@ import { Brackets } from 'typeorm'; import { Note } from '../../models/entities/note'; import { ensure } from '../../prelude/ensure'; -export default async (ctx: Router.IRouterContext) => { +export default async (ctx: Router.RouterContext) => { const userId = ctx.params.user; // Get 'sinceId' parameter -- cgit v1.2.3-freya