diff options
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/activitypub/url.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/lib/activitypub/url.ts b/server/lib/activitypub/url.ts index b54e038a4..58030be2c 100644 --- a/server/lib/activitypub/url.ts +++ b/server/lib/activitypub/url.ts | |||
@@ -8,7 +8,8 @@ import { | |||
8 | MVideoId, | 8 | MVideoId, |
9 | MVideoUrl, | 9 | MVideoUrl, |
10 | MVideoUUID, | 10 | MVideoUUID, |
11 | MAbuseId | 11 | MAbuseId, |
12 | MVideoPlaylistElement | ||
12 | } from '../../types/models' | 13 | } from '../../types/models' |
13 | import { MVideoPlaylist, MVideoPlaylistUUID } from '../../types/models/video/video-playlist' | 14 | import { MVideoPlaylist, MVideoPlaylistUUID } from '../../types/models/video/video-playlist' |
14 | import { MVideoFileVideoUUID } from '../../types/models/video/video-file' | 15 | import { MVideoFileVideoUUID } from '../../types/models/video/video-file' |
@@ -22,8 +23,8 @@ function getVideoPlaylistActivityPubUrl (videoPlaylist: MVideoPlaylist) { | |||
22 | return WEBSERVER.URL + '/video-playlists/' + videoPlaylist.uuid | 23 | return WEBSERVER.URL + '/video-playlists/' + videoPlaylist.uuid |
23 | } | 24 | } |
24 | 25 | ||
25 | function getVideoPlaylistElementActivityPubUrl (videoPlaylist: MVideoPlaylistUUID, video: MVideoUUID) { | 26 | function getVideoPlaylistElementActivityPubUrl (videoPlaylist: MVideoPlaylistUUID, videoPlaylistElement: MVideoPlaylistElement) { |
26 | return WEBSERVER.URL + '/video-playlists/' + videoPlaylist.uuid + '/' + video.uuid | 27 | return WEBSERVER.URL + '/video-playlists/' + videoPlaylist.uuid + '/videos/' + videoPlaylistElement.id |
27 | } | 28 | } |
28 | 29 | ||
29 | function getVideoCacheFileActivityPubUrl (videoFile: MVideoFileVideoUUID) { | 30 | function getVideoCacheFileActivityPubUrl (videoFile: MVideoFileVideoUUID) { |