Skip to content

best way to save what you love

api/schema: don't decode the url

wukko329b06803851
diff --git a/api/src/processing/schema.js b/api/src/processing/schema.js
index 9ff6e36b..c7ae1c6e 100644
--- a/api/src/processing/schema.js
+++ b/api/src/processing/schema.js
@@ -6,7 +6,7 @@ import { verifyLanguageCode } from "../misc/utils.js";
export const apiSchema = z.object({
url: z.string()
.min(1)
- .transform((url) => normalizeURL(decodeURIComponent(url))),
+ .transform(url => normalizeURL(url)),
audioBitrate: z.enum(
["320", "256", "128", "96", "64", "8"]