0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-29 17:42:38 +00:00

Wrap titles in error messages with pre blocks to prevent rendering.

This commit is contained in:
David Bolack
2025-01-10 23:22:22 -06:00
parent ecc91af1d6
commit 9d67724da9

View File

@@ -89,7 +89,7 @@ const errorIndex = (props)=>{
:
**Brew Title:** ${props.brew.brewTitle || 'Unable to show title'}
**Brew Title:** \`${props.brew.brewTitle || 'Unable to show title'}\`
**Current Authors:** ${props.brew.authors?.map((author)=>{return `[${author}](/user/${author})`;}).join(', ') || 'Unable to list authors'}
@@ -104,7 +104,7 @@ const errorIndex = (props)=>{
:
**Brew Title:** ${props.brew.brewTitle || 'Unable to show title'}
**Brew Title:** \`${props.brew.brewTitle || 'Unable to show title'}\`
**Current Authors:** ${props.brew.authors?.map((author)=>{return `[${author}](/user/${author})`;}).join(', ') || 'Unable to list authors'}
@@ -181,7 +181,7 @@ const errorIndex = (props)=>{
**Brew ID:** ${props.brew.brewId}
**Brew Title:** ${props.brew.brewTitle}`,
**Brew Title:** \`${props.brew.brewTitle}\`,
// ####### Admin page error #######
'52' : dedent`