From 2d5fb669ad4d06c7acb72d8847de9b63428f75c4 Mon Sep 17 00:00:00 2001
From: Andrea Vos
Date: Thu, 11 Jan 2024 19:19:16 +0100
Subject: [PATCH 1/2] (profile) potential fix for name pronunciation
---
routes/profileEditor.vue | 2 --
server/routes/pronounce.js | 4 ++--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/routes/profileEditor.vue b/routes/profileEditor.vue
index 9944eecc1..1138b6a8a 100644
--- a/routes/profileEditor.vue
+++ b/routes/profileEditor.vue
@@ -112,11 +112,9 @@
-
diff --git a/server/routes/pronounce.js b/server/routes/pronounce.js
index 715d7d0aa..bd9ffe78c 100644
--- a/server/routes/pronounce.js
+++ b/server/routes/pronounce.js
@@ -8,8 +8,8 @@ import S3 from 'aws-sdk/clients/s3.js';
const router = Router();
-router.get('/pronounce/:voice/*', handleErrorAsync(async (req, res) => {
- const text = req.params[0];
+router.get('/pronounce/:voice/:pronunciation(*)', handleErrorAsync(async (req, res) => {
+ const text = req.params.pronunciation;
if (!text || text.length > 256) {
return res.status(404).json({error: 'Not found'});
From 922966f18da6b903274e87886d11dfba8cd7e79c Mon Sep 17 00:00:00 2001
From: Andrea Vos
Date: Thu, 11 Jan 2024 19:39:21 +0100
Subject: [PATCH 2/2] (profile) another potential fix for name pronunciation
---
components/PronunciationSpeaker.vue | 4 +++-
server/routes/pronounce.js | 5 +++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/components/PronunciationSpeaker.vue b/components/PronunciationSpeaker.vue
index 68651d676..ec44ba791 100644
--- a/components/PronunciationSpeaker.vue
+++ b/components/PronunciationSpeaker.vue
@@ -8,6 +8,8 @@