mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-23 04:34:15 -04:00
(profile) potential fix for name pronunciation
This commit is contained in:
parent
8f6c799608
commit
2d5fb669ad
@ -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"/>
|
||||
|
@ -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'});
|
||||
|
Loading…
x
Reference in New Issue
Block a user