(profile) potential fix for name pronunciation

This commit is contained in:
Andrea Vos 2024-01-11 19:19:16 +01:00
parent 8f6c799608
commit 2d5fb669ad
2 changed files with 2 additions and 4 deletions

View File

@ -112,11 +112,9 @@
</p>
<OpinionListInput v-model="names" :prototype="{ value: '', opinion: 'meh', pronunciation: null }"
:customOpinions="opinions" :maxitems="128" :maxlength="config.profile.longNames ? 255 : 32">
<!--
<template v-slot:additional="s">
<PronunciationInput v-model="s.val.pronunciation"/>
</template>
-->
</OpinionListInput>
<InlineMarkdownInstructions v-model="markdown"/>
<PropagateCheckbox field="names" :before="beforeChanges.names" :after="names" v-if="otherProfiles > 0" @change="propagateChanged"/>

View File

@ -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'});