Fix federation when updating a video

pull/2400/head
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
1 changed files with 3 additions and 1 deletions

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) {