mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Add id to likes/dislikes/comments/shares collections
This commit is contained in:
parent
c88593f72f
commit
46531a0abd
4 changed files with 128 additions and 18 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue