Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
c4c0c311
Verified
Commit
c4c0c311
authored
Oct 20, 2021
by
Chocobozzz
Browse files
Fix my live videos filter
parent
926bf549
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/middlewares/validators/users.ts
View file @
c4c0c311
...
...
@@ -330,7 +330,7 @@ const usersVideosValidator = [
.
custom
(
isIdValid
).
withMessage
(
'
Should have a valid channel id
'
),
async
(
req
:
express
.
Request
,
res
:
express
.
Response
,
next
:
express
.
NextFunction
)
=>
{
logger
.
debug
(
'
Checking usersVideosValidator parameters
'
,
{
parameters
:
req
.
params
})
logger
.
debug
(
'
Checking usersVideosValidator parameters
'
,
{
parameters
:
req
.
query
})
if
(
areValidationErrors
(
req
,
res
))
return
...
...
server/models/video/video.ts
View file @
c4c0c311
...
...
@@ -43,7 +43,7 @@ import { VideoFilter } from '../../../shared/models/videos/video-query.type'
import
{
VideoStreamingPlaylistType
}
from
'
../../../shared/models/videos/video-streaming-playlist.type
'
import
{
peertubeTruncate
}
from
'
../../helpers/core-utils
'
import
{
isActivityPubUrlValid
}
from
'
../../helpers/custom-validators/activitypub/misc
'
import
{
isBooleanValid
}
from
'
../../helpers/custom-validators/misc
'
import
{
exists
,
isBooleanValid
}
from
'
../../helpers/custom-validators/misc
'
import
{
isVideoDescriptionValid
,
isVideoDurationValid
,
...
...
@@ -994,7 +994,7 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
}
}
if
(
isLive
)
{
if
(
exists
(
isLive
)
)
{
where
.
isLive
=
isLive
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment