mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-21 05:02:39 +00:00
fixed published request
This commit is contained in:
@@ -79,8 +79,7 @@ const errorIndex = (props)=>{
|
|||||||
|
|
||||||
**Current Authors:** ${props.brew.authors?.map((author)=>{return `[${author}](/user/${author})`;}).join(', ') || 'Unable to list authors'}
|
**Current Authors:** ${props.brew.authors?.map((author)=>{return `[${author}](/user/${author})`;}).join(', ') || 'Unable to list authors'}
|
||||||
|
|
||||||
${props.brew.published ? `[Click here to be redirected to the brew's share page.](/share/${props.brew.shareId})`:
|
[Click here to be redirected to the brew's share page.](/share/${props.brew.shareId})`,
|
||||||
'This brew is unpublished, therefore we cannot grant you its share page URL.'}`,
|
|
||||||
|
|
||||||
// User is not signed in; must be a user on the Authors List
|
// User is not signed in; must be a user on the Authors List
|
||||||
'04' : dedent`
|
'04' : dedent`
|
||||||
@@ -95,8 +94,7 @@ const errorIndex = (props)=>{
|
|||||||
|
|
||||||
**Current Authors:** ${props.brew.authors?.map((author)=>{return `[${author}](/user/${author})`;}).join(', ') || 'Unable to list authors'}
|
**Current Authors:** ${props.brew.authors?.map((author)=>{return `[${author}](/user/${author})`;}).join(', ') || 'Unable to list authors'}
|
||||||
|
|
||||||
${props.brew.published ? `[Click here to be redirected to the brew's share page.](/share/${props.brew.shareId})`:
|
[Click here to be redirected to the brew's share page.](/share/${props.brew.shareId})`,
|
||||||
'This brew is unpublished, therefore we cannot grant you its share page URL.'}`,
|
|
||||||
|
|
||||||
|
|
||||||
// Brew load error
|
// Brew load error
|
||||||
|
|||||||
Reference in New Issue
Block a user