mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Federate video views
This commit is contained in:
parent
c46edbc2f6
commit
40ff57078e
19 changed files with 188 additions and 44 deletions
|
@ -21,6 +21,10 @@ function getVideoAbuseActivityPubUrl (videoAbuse: VideoAbuseInstance) {
|
|||
return CONFIG.WEBSERVER.URL + '/admin/video-abuses/' + videoAbuse.id
|
||||
}
|
||||
|
||||
function getVideoViewActivityPubUrl (byAccount: AccountInstance, video: VideoInstance) {
|
||||
return video.url + '#views/' + byAccount.uuid + '/' + new Date().toISOString()
|
||||
}
|
||||
|
||||
function getAccountFollowActivityPubUrl (accountFollow: AccountFollowInstance) {
|
||||
const me = accountFollow.AccountFollower
|
||||
const following = accountFollow.AccountFollowing
|
||||
|
@ -56,5 +60,6 @@ export {
|
|||
getAccountFollowAcceptActivityPubUrl,
|
||||
getAnnounceActivityPubUrl,
|
||||
getUpdateActivityPubUrl,
|
||||
getUndoActivityPubUrl
|
||||
getUndoActivityPubUrl,
|
||||
getVideoViewActivityPubUrl
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue