ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix detecting public/unlisted privacy
Chocobozzz7505243612fa
diff --git a/packages/tests/src/api/videos/video-privacy.ts b/packages/tests/src/api/videos/video-privacy.tsindex 37aa339905..814efc4863 100644--- a/packages/tests/src/api/videos/video-privacy.ts+++ b/packages/tests/src/api/videos/video-privacy.ts@@ -171,6 +171,7 @@ describe('Test video privacy', function () {const video = await server.videos.get({ id })expect(video.name).to.equal('unlisted video')+ expect(video.privacy.id).to.equal(VideoPrivacy.UNLISTED)}}})diff --git a/server/core/helpers/activity-pub-utils.ts b/server/core/helpers/activity-pub-utils.tsindex ed821dc43c..5721cf8f5b 100644--- a/server/core/helpers/activity-pub-utils.ts+++ b/server/core/helpers/activity-pub-utils.ts@@ -64,7 +64,7 @@ export function getAPPublicValue () {export function hasAPPublic (collection: string[] | string) {const publicValue = getAPPublicValue()- return arrayify(collection).some(f => f === 'as:Public' || publicValue)+ return arrayify(collection).some(f => f === 'as:Public' || f === publicValue)}// ---------------------------------------------------------------------------