diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2019-09-27 05:50:34 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-09-27 05:50:34 +0900 |
| commit | 42a14508f6ee3a9aef374e8a8695230b3839dcb2 (patch) | |
| tree | bb177c017fe1d95796593ea9fca2e639e1035a9b /src/server/activitypub | |
| parent | Update node version (diff) | |
| download | sharkey-42a14508f6ee3a9aef374e8a8695230b3839dcb2.tar.gz sharkey-42a14508f6ee3a9aef374e8a8695230b3839dcb2.tar.bz2 sharkey-42a14508f6ee3a9aef374e8a8695230b3839dcb2.zip | |
Update dependencies :rocket:
Diffstat (limited to 'src/server/activitypub')
| -rw-r--r-- | src/server/activitypub/featured.ts | 4 | ||||
| -rw-r--r-- | src/server/activitypub/followers.ts | 4 | ||||
| -rw-r--r-- | src/server/activitypub/following.ts | 4 | ||||
| -rw-r--r-- | src/server/activitypub/outbox.ts | 4 |
4 files changed, 8 insertions, 8 deletions
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 |