aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-10-01 16:27:47 +0200
committerChocobozzz <me@florianbigard.com>2018-10-01 16:27:47 +0200
commita3737cbf2b09d5ce75e50f333d989a6162b04720 (patch)
treeb70091c20ff0b57513f40bb703509352bba296e3 /server/helpers
parentd382f4e9175c1520835e41c3573471a84bcf1713 (diff)
downloadPeerTube-a3737cbf2b09d5ce75e50f333d989a6162b04720.tar.gz
PeerTube-a3737cbf2b09d5ce75e50f333d989a6162b04720.tar.zst
PeerTube-a3737cbf2b09d5ce75e50f333d989a6162b04720.zip
Fix video fps validator
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/custom-validators/activitypub/videos.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/custom-validators/activitypub/videos.ts b/server/helpers/custom-validators/activitypub/videos.ts
index 8772e74cf..f88d26561 100644
--- a/server/helpers/custom-validators/activitypub/videos.ts
+++ b/server/helpers/custom-validators/activitypub/videos.ts
@@ -85,7 +85,7 @@ function isRemoteVideoUrlValid (url: any) {
85 isActivityPubUrlValid(url.href) && 85 isActivityPubUrlValid(url.href) &&
86 validator.isInt(url.height + '', { min: 0 }) && 86 validator.isInt(url.height + '', { min: 0 }) &&
87 validator.isInt(url.size + '', { min: 0 }) && 87 validator.isInt(url.size + '', { min: 0 }) &&
88 (!url.fps || validator.isInt(url.fps + '', { min: 0 })) 88 (!url.fps || validator.isInt(url.fps + '', { min: -1 }))
89 ) || 89 ) ||
90 ( 90 (
91 ACTIVITY_PUB.URL_MIME_TYPES.TORRENT.indexOf(url.mimeType) !== -1 && 91 ACTIVITY_PUB.URL_MIME_TYPES.TORRENT.indexOf(url.mimeType) !== -1 &&