aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-07-26 10:48:30 +0200
committerChocobozzz <me@florianbigard.com>2023-07-26 10:48:30 +0200
commit69e3f2049f01a9aa78b81889ac040a10f925e590 (patch)
treed533fa9cdf84007052767fe2762f97283905e6d1 /server
parent3ffff82e87c4349b8a8354481c9b7ea696c886ef (diff)
downloadPeerTube-69e3f2049f01a9aa78b81889ac040a10f925e590.tar.gz
PeerTube-69e3f2049f01a9aa78b81889ac040a10f925e590.tar.zst
PeerTube-69e3f2049f01a9aa78b81889ac040a10f925e590.zip
Fix invalid short uuid conversion
Avoid "TypeError: Expected a string but received a null" error
Diffstat (limited to 'server')
-rw-r--r--server/helpers/custom-validators/misc.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/custom-validators/misc.ts b/server/helpers/custom-validators/misc.ts
index 2c4cd1b9f..937ae0632 100644
--- a/server/helpers/custom-validators/misc.ts
+++ b/server/helpers/custom-validators/misc.ts
@@ -119,7 +119,7 @@ function toCompleteUUID (value: string) {
119 try { 119 try {
120 return shortToUUID(value) 120 return shortToUUID(value)
121 } catch { 121 } catch {
122 return null 122 return ''
123 } 123 }
124 } 124 }
125 125