ActivityPub-federated video streaming platform using P2P directly in your web browser
More robust short to complete uuid error handler
Chocobozzzded68a97600d
diff --git a/server/helpers/custom-validators/misc.ts b/server/helpers/custom-validators/misc.tsindex 3dc5504e32..b3ab3ac647 100644--- a/server/helpers/custom-validators/misc.ts+++ b/server/helpers/custom-validators/misc.ts@@ -103,7 +103,13 @@ function checkMimetypeRegex (fileMimeType: string, mimeTypeRegex: string) {// ---------------------------------------------------------------------------function toCompleteUUID (value: string) {- if (isShortUUID(value)) return shortToUUID(value)+ if (isShortUUID(value)) {+ try {+ return shortToUUID(value)+ } catch {+ return null+ }+ }return value}