diff options
Diffstat (limited to 'server/controllers/api/server/follows.ts')
-rw-r--r-- | server/controllers/api/server/follows.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/controllers/api/server/follows.ts b/server/controllers/api/server/follows.ts index 0fbcc4b80..40b62d977 100644 --- a/server/controllers/api/server/follows.ts +++ b/server/controllers/api/server/follows.ts | |||
@@ -10,7 +10,7 @@ import { getOrCreateActorAndServerAndModel } from '../../../lib/activitypub/acto | |||
10 | import { sendFollow, sendUndoFollow } from '../../../lib/activitypub/send' | 10 | import { sendFollow, sendUndoFollow } from '../../../lib/activitypub/send' |
11 | import { | 11 | import { |
12 | asyncMiddleware, authenticate, ensureUserHasRight, paginationValidator, removeFollowingValidator, setBodyHostsPort, setDefaultSort, | 12 | asyncMiddleware, authenticate, ensureUserHasRight, paginationValidator, removeFollowingValidator, setBodyHostsPort, setDefaultSort, |
13 | setPagination | 13 | setDefaultPagination |
14 | } from '../../../middlewares' | 14 | } from '../../../middlewares' |
15 | import { followersSortValidator, followingSortValidator, followValidator } from '../../../middlewares/validators' | 15 | import { followersSortValidator, followingSortValidator, followValidator } from '../../../middlewares/validators' |
16 | import { ActorModel } from '../../../models/activitypub/actor' | 16 | import { ActorModel } from '../../../models/activitypub/actor' |
@@ -22,7 +22,7 @@ serverFollowsRouter.get('/following', | |||
22 | paginationValidator, | 22 | paginationValidator, |
23 | followingSortValidator, | 23 | followingSortValidator, |
24 | setDefaultSort, | 24 | setDefaultSort, |
25 | setPagination, | 25 | setDefaultPagination, |
26 | asyncMiddleware(listFollowing) | 26 | asyncMiddleware(listFollowing) |
27 | ) | 27 | ) |
28 | 28 | ||
@@ -45,7 +45,7 @@ serverFollowsRouter.get('/followers', | |||
45 | paginationValidator, | 45 | paginationValidator, |
46 | followersSortValidator, | 46 | followersSortValidator, |
47 | setDefaultSort, | 47 | setDefaultSort, |
48 | setPagination, | 48 | setDefaultPagination, |
49 | asyncMiddleware(listFollowers) | 49 | asyncMiddleware(listFollowers) |
50 | ) | 50 | ) |
51 | 51 | ||