mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +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
|
@ -22,6 +22,8 @@ async function shareVideoByServerAndChannel (video: VideoModel, t: Transaction)
|
|||
}
|
||||
|
||||
async function changeVideoChannelShare (video: VideoModel, oldVideoChannel: VideoChannelModel, t: Transaction) {
|
||||
logger.info('Updating video channel of video %s: %s -> %s.', video.uuid, oldVideoChannel.name, video.VideoChannel.name)
|
||||
|
||||
await undoShareByVideoChannel(video, oldVideoChannel, t)
|
||||
|
||||
await shareByVideoChannel(video, t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue