mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Improve redundancy: add 'min_lifetime' configuration
This commit is contained in:
parent
d1a63fc7ac
commit
e5565833f6
27 changed files with 644 additions and 295 deletions
|
@ -50,7 +50,12 @@ function getAudienceFromFollowersOf (actorsInvolvedInObject: ActorModel[]): Acti
|
|||
|
||||
async function getActorsInvolvedInVideo (video: VideoModel, t: Transaction) {
|
||||
const actors = await VideoShareModel.loadActorsByShare(video.id, t)
|
||||
actors.push(video.VideoChannel.Account.Actor)
|
||||
|
||||
const videoActor = video.VideoChannel && video.VideoChannel.Account
|
||||
? video.VideoChannel.Account.Actor
|
||||
: await ActorModel.loadAccountActorByVideoId(video.id, t)
|
||||
|
||||
actors.push(videoActor)
|
||||
|
||||
return actors
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue