+function getLocalVideoCacheFileActivityPubUrl (videoFile: MVideoFileVideoUUID) {
+ const suffixFPS = videoFile.fps && videoFile.fps !== -1 ? '-' + videoFile.fps : ''
+
+ return `${WEBSERVER.URL}/redundancy/videos/${videoFile.Video.uuid}/${videoFile.resolution}${suffixFPS}`
+}
+
+function getLocalVideoCacheStreamingPlaylistActivityPubUrl (video: MVideoUUID, playlist: MStreamingPlaylist) {
+ return `${WEBSERVER.URL}/redundancy/streaming-playlists/${playlist.getStringType()}/${video.uuid}`
+}
+
+function getLocalVideoCommentActivityPubUrl (video: MVideoUUID, videoComment: MCommentId) {
+ return WEBSERVER.URL + '/videos/watch/' + video.uuid + '/comments/' + videoComment.id
+}
+
+function getLocalVideoChannelActivityPubUrl (videoChannelName: string) {
+ return WEBSERVER.URL + '/video-channels/' + videoChannelName
+}
+
+function getLocalAccountActivityPubUrl (accountName: string) {
+ return WEBSERVER.URL + '/accounts/' + accountName
+}
+
+function getLocalAbuseActivityPubUrl (abuse: MAbuseId) {
+ return WEBSERVER.URL + '/admin/abuses/' + abuse.id
+}
+
+function getLocalVideoViewActivityPubUrl (byActor: MActorUrl, video: MVideoId, viewerIdentifier: string) {
+ return byActor.url + '/views/videos/' + video.id + '/' + viewerIdentifier
+}
+
+function getLocalVideoViewerActivityPubUrl (stats: MLocalVideoViewer) {
+ return WEBSERVER.URL + '/videos/local-viewer/' + stats.uuid
+}
+
+function getVideoLikeActivityPubUrlByLocalActor (byActor: MActorUrl, video: MVideoId) {
+ return byActor.url + '/likes/' + video.id
+}
+
+function getVideoDislikeActivityPubUrlByLocalActor (byActor: MActorUrl, video: MVideoId) {
+ return byActor.url + '/dislikes/' + video.id