mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-06 16:32:40 +00:00
title attribute to hidden authors
This commit is contained in:
@@ -145,9 +145,9 @@ const BrewItem = createClass({
|
|||||||
{brew.authors?.map((author, index) => (
|
{brew.authors?.map((author, index) => (
|
||||||
<React.Fragment key={index}>
|
<React.Fragment key={index}>
|
||||||
{author === 'hidden' ? (
|
{author === 'hidden' ? (
|
||||||
<span>{author}</span> // Render as plain text if the author's name is "hidden"
|
<span title="This username had an email in it, so we hid it to keep the user's privacy, sorry"> {author}</span>
|
||||||
) : (
|
) : (
|
||||||
<a href={`/user/${author}`}>{author}</a> // Render as a link if not "hidden"
|
<a href={`/user/${author}`}>{author}</a>
|
||||||
)}
|
)}
|
||||||
{index < brew.authors.length - 1 && ', '}
|
{index < brew.authors.length - 1 && ', '}
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
|
|||||||
Reference in New Issue
Block a user