diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-24 14:35:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-24 14:36:25 +0200 |
commit | 98d3324db3b1c345fc30e5dbcef3b1e11169867e (patch) | |
tree | 789b15539307a3671722ccce71f3b0de1a9dcc8a /server/controllers/activitypub | |
parent | 3f6d68d9671ddb7ba1c4f3a35021b84856dafb6a (diff) | |
download | PeerTube-98d3324db3b1c345fc30e5dbcef3b1e11169867e.tar.gz PeerTube-98d3324db3b1c345fc30e5dbcef3b1e11169867e.tar.zst PeerTube-98d3324db3b1c345fc30e5dbcef3b1e11169867e.zip |
Fix nodeinfo endpoint
Diffstat (limited to 'server/controllers/activitypub')
-rw-r--r-- | server/controllers/activitypub/client.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/activitypub/client.ts b/server/controllers/activitypub/client.ts index ebb2c06a2..c90c3f931 100644 --- a/server/controllers/activitypub/client.ts +++ b/server/controllers/activitypub/client.ts | |||
@@ -16,7 +16,7 @@ import { VideoModel } from '../../models/video/video' | |||
16 | import { VideoChannelModel } from '../../models/video/video-channel' | 16 | import { VideoChannelModel } from '../../models/video/video-channel' |
17 | import { VideoCommentModel } from '../../models/video/video-comment' | 17 | import { VideoCommentModel } from '../../models/video/video-comment' |
18 | import { VideoShareModel } from '../../models/video/video-share' | 18 | import { VideoShareModel } from '../../models/video/video-share' |
19 | import { cache } from '../../middlewares/cache' | 19 | import { cacheRoute } from '../../middlewares/cache' |
20 | import { activityPubResponse } from './utils' | 20 | import { activityPubResponse } from './utils' |
21 | import { AccountVideoRateModel } from '../../models/account/account-video-rate' | 21 | import { AccountVideoRateModel } from '../../models/account/account-video-rate' |
22 | import { | 22 | import { |
@@ -43,7 +43,7 @@ activityPubClientRouter.get('/accounts?/:name/following', | |||
43 | ) | 43 | ) |
44 | 44 | ||
45 | activityPubClientRouter.get('/videos/watch/:id', | 45 | activityPubClientRouter.get('/videos/watch/:id', |
46 | executeIfActivityPub(asyncMiddleware(cache(ROUTE_CACHE_LIFETIME.ACTIVITY_PUB.VIDEOS))), | 46 | executeIfActivityPub(asyncMiddleware(cacheRoute(ROUTE_CACHE_LIFETIME.ACTIVITY_PUB.VIDEOS))), |
47 | executeIfActivityPub(asyncMiddleware(videosGetValidator)), | 47 | executeIfActivityPub(asyncMiddleware(videosGetValidator)), |
48 | executeIfActivityPub(asyncMiddleware(videoController)) | 48 | executeIfActivityPub(asyncMiddleware(videoController)) |
49 | ) | 49 | ) |