diff options
Diffstat (limited to 'server/lib/activitypub')
-rw-r--r-- | server/lib/activitypub/url.ts | 22 |
1 files changed, 21 insertions, 1 deletions
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) | |||
37 | return byActor.url + '/dislikes/' + video.id | 37 | return byActor.url + '/dislikes/' + video.id |
38 | } | 38 | } |
39 | 39 | ||
40 | function getVideoSharesActivityPubUrl (video: VideoModel) { | ||
41 | return video.url + '/announces' | ||
42 | } | ||
43 | |||
44 | function getVideoCommentsActivityPubUrl (video: VideoModel) { | ||
45 | return video.url + '/comments' | ||
46 | } | ||
47 | |||
48 | function getVideoLikesActivityPubUrl (video: VideoModel) { | ||
49 | return video.url + '/likes' | ||
50 | } | ||
51 | |||
52 | function getVideoDislikesActivityPubUrl (video: VideoModel) { | ||
53 | return video.url + '/dislikes' | ||
54 | } | ||
55 | |||
40 | function getActorFollowActivityPubUrl (actorFollow: ActorFollowModel) { | 56 | function getActorFollowActivityPubUrl (actorFollow: ActorFollowModel) { |
41 | const me = actorFollow.ActorFollower | 57 | const me = actorFollow.ActorFollower |
42 | const following = actorFollow.ActorFollowing | 58 | const following = actorFollow.ActorFollowing |
@@ -81,5 +97,9 @@ export { | |||
81 | getVideoLikeActivityPubUrl, | 97 | getVideoLikeActivityPubUrl, |
82 | getVideoDislikeActivityPubUrl, | 98 | getVideoDislikeActivityPubUrl, |
83 | getVideoCommentActivityPubUrl, | 99 | getVideoCommentActivityPubUrl, |
84 | getDeleteActivityPubUrl | 100 | getDeleteActivityPubUrl, |
101 | getVideoSharesActivityPubUrl, | ||
102 | getVideoCommentsActivityPubUrl, | ||
103 | getVideoLikesActivityPubUrl, | ||
104 | getVideoDislikesActivityPubUrl | ||
85 | } | 105 | } |