aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/activitypub/url.ts22
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
40function getVideoSharesActivityPubUrl (video: VideoModel) {
41 return video.url + '/announces'
42}
43
44function getVideoCommentsActivityPubUrl (video: VideoModel) {
45 return video.url + '/comments'
46}
47
48function getVideoLikesActivityPubUrl (video: VideoModel) {
49 return video.url + '/likes'
50}
51
52function getVideoDislikesActivityPubUrl (video: VideoModel) {
53 return video.url + '/dislikes'
54}
55
40function getActorFollowActivityPubUrl (actorFollow: ActorFollowModel) { 56function 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}