diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-17 15:45:42 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-27 09:41:54 +0200 |
commit | 8a19bee1a1ee39f973bb37429e4f73c3f2873cdb (patch) | |
tree | 33c93ef19451d7e46d4be74ce0681359d2dcc70e /server/controllers/activitypub | |
parent | 965c4b22d0e4d2f853501e844e6ebbb861bd389d (diff) | |
download | PeerTube-8a19bee1a1ee39f973bb37429e4f73c3f2873cdb.tar.gz PeerTube-8a19bee1a1ee39f973bb37429e4f73c3f2873cdb.tar.zst PeerTube-8a19bee1a1ee39f973bb37429e4f73c3f2873cdb.zip |
Add ability to set a name to a channel
Diffstat (limited to 'server/controllers/activitypub')
-rw-r--r-- | server/controllers/activitypub/client.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/server/controllers/activitypub/client.ts b/server/controllers/activitypub/client.ts index c90c3f931..54cf44419 100644 --- a/server/controllers/activitypub/client.ts +++ b/server/controllers/activitypub/client.ts | |||
@@ -6,8 +6,8 @@ import { CONFIG, ROUTE_CACHE_LIFETIME } from '../../initializers' | |||
6 | import { buildVideoAnnounce } from '../../lib/activitypub/send' | 6 | import { buildVideoAnnounce } from '../../lib/activitypub/send' |
7 | import { audiencify, getAudience } from '../../lib/activitypub/audience' | 7 | import { audiencify, getAudience } from '../../lib/activitypub/audience' |
8 | import { createActivityData } from '../../lib/activitypub/send/send-create' | 8 | import { createActivityData } from '../../lib/activitypub/send/send-create' |
9 | import { asyncMiddleware, executeIfActivityPub, localAccountValidator } from '../../middlewares' | 9 | import { asyncMiddleware, executeIfActivityPub, localAccountValidator, localVideoChannelValidator } from '../../middlewares' |
10 | import { videoChannelsGetValidator, videosGetValidator, videosShareValidator } from '../../middlewares/validators' | 10 | import { videosGetValidator, videosShareValidator } from '../../middlewares/validators' |
11 | import { videoCommentGetValidator } from '../../middlewares/validators/video-comments' | 11 | import { videoCommentGetValidator } from '../../middlewares/validators/video-comments' |
12 | import { AccountModel } from '../../models/account/account' | 12 | import { AccountModel } from '../../models/account/account' |
13 | import { ActorModel } from '../../models/activitypub/actor' | 13 | import { ActorModel } from '../../models/activitypub/actor' |
@@ -80,16 +80,16 @@ activityPubClientRouter.get('/videos/watch/:videoId/comments/:commentId/activity | |||
80 | executeIfActivityPub(asyncMiddleware(videoCommentController)) | 80 | executeIfActivityPub(asyncMiddleware(videoCommentController)) |
81 | ) | 81 | ) |
82 | 82 | ||
83 | activityPubClientRouter.get('/video-channels/:id', | 83 | activityPubClientRouter.get('/video-channels/:name', |
84 | executeIfActivityPub(asyncMiddleware(videoChannelsGetValidator)), | 84 | executeIfActivityPub(asyncMiddleware(localVideoChannelValidator)), |
85 | executeIfActivityPub(asyncMiddleware(videoChannelController)) | 85 | executeIfActivityPub(asyncMiddleware(videoChannelController)) |
86 | ) | 86 | ) |
87 | activityPubClientRouter.get('/video-channels/:id/followers', | 87 | activityPubClientRouter.get('/video-channels/:name/followers', |
88 | executeIfActivityPub(asyncMiddleware(videoChannelsGetValidator)), | 88 | executeIfActivityPub(asyncMiddleware(localVideoChannelValidator)), |
89 | executeIfActivityPub(asyncMiddleware(videoChannelFollowersController)) | 89 | executeIfActivityPub(asyncMiddleware(videoChannelFollowersController)) |
90 | ) | 90 | ) |
91 | activityPubClientRouter.get('/video-channels/:id/following', | 91 | activityPubClientRouter.get('/video-channels/:name/following', |
92 | executeIfActivityPub(asyncMiddleware(videoChannelsGetValidator)), | 92 | executeIfActivityPub(asyncMiddleware(localVideoChannelValidator)), |
93 | executeIfActivityPub(asyncMiddleware(videoChannelFollowingController)) | 93 | executeIfActivityPub(asyncMiddleware(videoChannelFollowingController)) |
94 | ) | 94 | ) |
95 | 95 | ||