1
0
Fork 0

Fix federation when updating a video

This commit is contained in:
Chocobozzz 2020-01-10 10:10:48 +01:00
parent f2f0eda543
commit dce659fa7c
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -1802,7 +1802,9 @@ export class VideoModel extends Model<VideoModel> {
}
private static isPrivacyForFederation (privacy: VideoPrivacy) {
return privacy === VideoPrivacy.PUBLIC || privacy === VideoPrivacy.UNLISTED
const castedPrivacy = parseInt(privacy + '', 10)
return castedPrivacy === VideoPrivacy.PUBLIC || castedPrivacy === VideoPrivacy.UNLISTED
}
static getCategoryLabel (id: number) {