mirror of https://github.com/Chocobozzz/PeerTube
Fix federation when updating a video
parent
f2f0eda543
commit
dce659fa7c
|
@ -1802,7 +1802,9 @@ export class VideoModel extends Model<VideoModel> {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static isPrivacyForFederation (privacy: VideoPrivacy) {
|
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) {
|
static getCategoryLabel (id: number) {
|
||||||
|
|
Loading…
Reference in New Issue