diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-20 10:04:06 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-20 10:04:06 +0200 |
commit | c4c0c31144b2cb8b6ade1cc39d676bc00c08cabf (patch) | |
tree | 9a9e2c85646d0f4833b48da4a2d047d55b54ae1f /server/models/video | |
parent | 926bf5496fd3caa204b5d48a71b6028544d7d49e (diff) | |
download | PeerTube-c4c0c31144b2cb8b6ade1cc39d676bc00c08cabf.tar.gz PeerTube-c4c0c31144b2cb8b6ade1cc39d676bc00c08cabf.tar.zst PeerTube-c4c0c31144b2cb8b6ade1cc39d676bc00c08cabf.zip |
Fix my live videos filter
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 4044287ee..a62ae2f23 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -43,7 +43,7 @@ import { VideoFilter } from '../../../shared/models/videos/video-query.type' | |||
43 | import { VideoStreamingPlaylistType } from '../../../shared/models/videos/video-streaming-playlist.type' | 43 | import { VideoStreamingPlaylistType } from '../../../shared/models/videos/video-streaming-playlist.type' |
44 | import { peertubeTruncate } from '../../helpers/core-utils' | 44 | import { peertubeTruncate } from '../../helpers/core-utils' |
45 | import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc' | 45 | import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc' |
46 | import { isBooleanValid } from '../../helpers/custom-validators/misc' | 46 | import { exists, isBooleanValid } from '../../helpers/custom-validators/misc' |
47 | import { | 47 | import { |
48 | isVideoDescriptionValid, | 48 | isVideoDescriptionValid, |
49 | isVideoDurationValid, | 49 | isVideoDurationValid, |
@@ -994,7 +994,7 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> { | |||
994 | } | 994 | } |
995 | } | 995 | } |
996 | 996 | ||
997 | if (isLive) { | 997 | if (exists(isLive)) { |
998 | where.isLive = isLive | 998 | where.isLive = isLive |
999 | } | 999 | } |
1000 | 1000 | ||