mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Add federation to ownership change
This commit is contained in:
parent
0b74c74abe
commit
5cf84858d4
13 changed files with 139 additions and 79 deletions
|
@ -20,7 +20,10 @@ async function sendVideoAnnounce (byActor: ActorModel, videoShare: VideoShareMod
|
|||
|
||||
logger.info('Creating job to send announce %s.', videoShare.url)
|
||||
|
||||
return broadcastToFollowers(data, byActor, [ byActor ], t)
|
||||
const actorsInvolvedInVideo = await getActorsInvolvedInVideo(video, t)
|
||||
const followersException = [ byActor ]
|
||||
|
||||
return broadcastToFollowers(data, byActor, actorsInvolvedInVideo, t, followersException)
|
||||
}
|
||||
|
||||
function announceActivityData (url: string, byActor: ActorModel, object: string, audience?: ActivityAudience): ActivityAnnounce {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue