diff options
-rw-r--r-- | server/models/video/video.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index ac8c81ddf..243871028 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -1802,7 +1802,9 @@ export class VideoModel extends Model<VideoModel> { | |||
1802 | } | 1802 | } |
1803 | 1803 | ||
1804 | private static isPrivacyForFederation (privacy: VideoPrivacy) { | 1804 | private static isPrivacyForFederation (privacy: VideoPrivacy) { |
1805 | return privacy === VideoPrivacy.PUBLIC || privacy === VideoPrivacy.UNLISTED | 1805 | const castedPrivacy = parseInt(privacy + '', 10) |
1806 | |||
1807 | return castedPrivacy === VideoPrivacy.PUBLIC || castedPrivacy === VideoPrivacy.UNLISTED | ||
1806 | } | 1808 | } |
1807 | 1809 | ||
1808 | static getCategoryLabel (id: number) { | 1810 | static getCategoryLabel (id: number) { |