Fix federation when updating a video
This commit is contained in:
parent
f2f0eda543
commit
dce659fa7c
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue