1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00

Fill video support on channel sync

This commit is contained in:
Chocobozzz 2025-09-03 08:46:38 +02:00
parent 0882d96624
commit 91afa1004e
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 9 additions and 2 deletions

View file

@ -285,7 +285,8 @@ describe('Test channel synchronizations', function () {
const { id: channelId } = await servers[0].channels.create({ const { id: channelId } = await servers[0].channels.create({
attributes: { attributes: {
name: 'channel2' name: 'channel2',
support: 'my support test'
} }
}) })
@ -306,6 +307,11 @@ describe('Test channel synchronizations', function () {
expect(data[1].name).to.equal('small video - youtube') expect(data[1].name).to.equal('small video - youtube')
videoToDelete = data[1].id videoToDelete = data[1].id
for (const { uuid } of data) {
const video = await servers[0].videos.get({ id: uuid })
expect(video.support).to.equal('my support test')
}
} }
}) })

View file

@ -66,7 +66,8 @@ export async function synchronizeChannel (options: {
targetUrl, targetUrl,
channelSync, channelSync,
importDataOverride: { importDataOverride: {
privacy: VideoPrivacy.PUBLIC privacy: VideoPrivacy.PUBLIC,
support: channel.support
} }
}) })