X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Flib%2Factivitypub%2Furl.ts;h=ba3bf688d634d036f0877eab1d8c865f78da9a9e;hb=4a9e71c2b1ef57de01cd04984348b3957ebbc21d;hp=5705afbd62ff8ebdbe938439fe406205b47ad216;hpb=c3badc81fe3d78601fb278a7f28eeed63060d300;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/lib/activitypub/url.ts b/server/lib/activitypub/url.ts index 5705afbd6..ba3bf688d 100644 --- a/server/lib/activitypub/url.ts +++ b/server/lib/activitypub/url.ts @@ -37,6 +37,22 @@ function getVideoDislikeActivityPubUrl (byActor: ActorModel, video: VideoModel) return byActor.url + '/dislikes/' + video.id } +function getVideoSharesActivityPubUrl (video: VideoModel) { + return video.url + '/announces' +} + +function getVideoCommentsActivityPubUrl (video: VideoModel) { + return video.url + '/comments' +} + +function getVideoLikesActivityPubUrl (video: VideoModel) { + return video.url + '/likes' +} + +function getVideoDislikesActivityPubUrl (video: VideoModel) { + return video.url + '/dislikes' +} + function getActorFollowActivityPubUrl (actorFollow: ActorFollowModel) { const me = actorFollow.ActorFollower const following = actorFollow.ActorFollowing @@ -81,5 +97,9 @@ export { getVideoLikeActivityPubUrl, getVideoDislikeActivityPubUrl, getVideoCommentActivityPubUrl, - getDeleteActivityPubUrl + getDeleteActivityPubUrl, + getVideoSharesActivityPubUrl, + getVideoCommentsActivityPubUrl, + getVideoLikesActivityPubUrl, + getVideoDislikesActivityPubUrl }