0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-05 08:02:42 +00:00

suggested changes 2

This commit is contained in:
Víctor Losada Hernández
2024-09-01 11:10:46 +02:00
parent c528c8639a
commit f0b447866c
4 changed files with 65 additions and 93 deletions

View File

@@ -144,12 +144,10 @@ const BrewItem = createClass({
<i className='fas fa-user'/>
{brew.authors?.map((author, index) => (
<React.Fragment key={index}>
{author === 'hidden' ? (
<span title="This username had an email in it, so we hid it to keep the user's privacy, sorry">&nbsp;{author}</span>
) : (
<a href={`/user/${author}`}>{author}</a>
)}
{index < brew.authors.length - 1 && ', '}
{author === 'hidden'
? <span title="Username contained an email address; hidden to protect user's privacy">{author}</span>
: <a href={`/user/${author}`}>{author}</a>
}
</React.Fragment>
))}
</span>