aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-29 10:52:19 +0100
committerChocobozzz <me@florianbigard.com>2018-01-29 10:52:19 +0100
commit46531a0abdd5c860a1a8cdb4b636b9c55bfb115b (patch)
tree9cc1aaa565985c04b12bf985e9c6f21aebf42ff3 /server/lib
parentc88593f72f1097cc34a091b4cb4b6d6e214d1e9f (diff)
downloadPeerTube-46531a0abdd5c860a1a8cdb4b636b9c55bfb115b.tar.gz
PeerTube-46531a0abdd5c860a1a8cdb4b636b9c55bfb115b.tar.zst
PeerTube-46531a0abdd5c860a1a8cdb4b636b9c55bfb115b.zip
Add id to likes/dislikes/comments/shares collections
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}