diff options
author | Chocobozzz <me@florianbigard.com> | 2020-12-17 09:23:57 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-12-17 09:23:57 +0100 |
commit | 9cfeb3cf989fffccdfe3e575903dc00baab255b2 (patch) | |
tree | 8a40ade507ebb1ba874a2e934420c523d6853638 /server/models/redundancy | |
parent | 9e454eba570ca459a2dc2bb99ed6a700622e4f32 (diff) | |
download | PeerTube-9cfeb3cf989fffccdfe3e575903dc00baab255b2.tar.gz PeerTube-9cfeb3cf989fffccdfe3e575903dc00baab255b2.tar.zst PeerTube-9cfeb3cf989fffccdfe3e575903dc00baab255b2.zip |
Fix redundancy federation in some cases
Diffstat (limited to 'server/models/redundancy')
-rw-r--r-- | server/models/redundancy/video-redundancy.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/models/redundancy/video-redundancy.ts b/server/models/redundancy/video-redundancy.ts index fa96a1e39..c536c288b 100644 --- a/server/models/redundancy/video-redundancy.ts +++ b/server/models/redundancy/video-redundancy.ts | |||
@@ -651,7 +651,9 @@ export class VideoRedundancyModel extends Model { | |||
651 | getVideo () { | 651 | getVideo () { |
652 | if (this.VideoFile) return this.VideoFile.Video | 652 | if (this.VideoFile) return this.VideoFile.Video |
653 | 653 | ||
654 | return this.VideoStreamingPlaylist.Video | 654 | if (this.VideoStreamingPlaylist.Video) return this.VideoStreamingPlaylist.Video |
655 | |||
656 | return undefined | ||
655 | } | 657 | } |
656 | 658 | ||
657 | isOwned () { | 659 | isOwned () { |