diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-10 10:10:48 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-10 10:30:36 +0100 |
commit | dce659fa7cb2b0f814e454a7a5c6860f9c37b39e (patch) | |
tree | 92afb2138c9d99888c162abf760f9247f11c54ca /server/models/video | |
parent | f2f0eda543ab54eec0f6bcdd8ccf6e382d5cafb6 (diff) | |
download | PeerTube-dce659fa7cb2b0f814e454a7a5c6860f9c37b39e.tar.gz PeerTube-dce659fa7cb2b0f814e454a7a5c6860f9c37b39e.tar.zst PeerTube-dce659fa7cb2b0f814e454a7a5c6860f9c37b39e.zip |
Fix federation when updating a video
Diffstat (limited to 'server/models/video')
-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) { |