ActivityPub-federated video streaming platform using P2P directly in your web browser
Fill video support on channel sync
Chocobozzz91afa1004e67
diff --git a/packages/tests/src/api/videos/video-channel-syncs.ts b/packages/tests/src/api/videos/video-channel-syncs.tsindex 771b935ad3..c79b156514 100644--- a/packages/tests/src/api/videos/video-channel-syncs.ts+++ b/packages/tests/src/api/videos/video-channel-syncs.ts@@ -285,7 +285,8 @@ describe('Test channel synchronizations', function () {const { id: channelId } = await servers[0].channels.create({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')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')+ }}})diff --git a/server/core/lib/sync-channel.ts b/server/core/lib/sync-channel.tsindex ad642e4810..fdd2963a30 100644--- a/server/core/lib/sync-channel.ts+++ b/server/core/lib/sync-channel.ts@@ -66,7 +66,8 @@ export async function synchronizeChannel (options: {targetUrl,channelSync,importDataOverride: {- privacy: VideoPrivacy.PUBLIC+ privacy: VideoPrivacy.PUBLIC,+ support: channel.support}})