mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
Fill video support on channel sync
This commit is contained in:
parent
0882d96624
commit
91afa1004e
2 changed files with 9 additions and 2 deletions
|
@ -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')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,8 @@ export async function synchronizeChannel (options: {
|
||||||
targetUrl,
|
targetUrl,
|
||||||
channelSync,
|
channelSync,
|
||||||
importDataOverride: {
|
importDataOverride: {
|
||||||
privacy: VideoPrivacy.PUBLIC
|
privacy: VideoPrivacy.PUBLIC,
|
||||||
|
support: channel.support
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue