mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Federate likes/dislikes
This commit is contained in:
parent
d52eb8f656
commit
0032ebe94a
27 changed files with 548 additions and 62 deletions
|
@ -25,6 +25,14 @@ function getVideoViewActivityPubUrl (byAccount: AccountInstance, video: VideoIns
|
|||
return video.url + '#views/' + byAccount.uuid + '/' + new Date().toISOString()
|
||||
}
|
||||
|
||||
function getVideoLikeActivityPubUrl (byAccount: AccountInstance, video: VideoInstance) {
|
||||
return byAccount.url + '#likes/' + video.id
|
||||
}
|
||||
|
||||
function getVideoDislikeActivityPubUrl (byAccount: AccountInstance, video: VideoInstance) {
|
||||
return byAccount.url + '#dislikes/' + video.id
|
||||
}
|
||||
|
||||
function getAccountFollowActivityPubUrl (accountFollow: AccountFollowInstance) {
|
||||
const me = accountFollow.AccountFollower
|
||||
const following = accountFollow.AccountFollowing
|
||||
|
@ -61,5 +69,7 @@ export {
|
|||
getAnnounceActivityPubUrl,
|
||||
getUpdateActivityPubUrl,
|
||||
getUndoActivityPubUrl,
|
||||
getVideoViewActivityPubUrl
|
||||
getVideoViewActivityPubUrl,
|
||||
getVideoLikeActivityPubUrl,
|
||||
getVideoDislikeActivityPubUrl
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue