Fix detecting public/unlisted privacy

This commit is contained in:
Chocobozzz
2026-07-09 15:53:44 +02:00
parent 29e1ca923a
commit 7505243612
2 changed files with 2 additions and 1 deletions
@@ -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)
}
}
})
+1 -1
View File
@@ -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)
}
// ---------------------------------------------------------------------------