mirror of
https://github.com/decompme/decomp.me.git
synced 2026-02-21 13:59:25 -06:00
fix scratch page render failure when parent scratch is unclaimed
This commit is contained in:
@@ -10,7 +10,7 @@ export default async function Head({ params }: { params: { slug: string }}) {
|
||||
if (scratch.owner)
|
||||
description += `\nOwner: ${scratch.owner.username}`
|
||||
if (parentScratch)
|
||||
description += `\nForked from: @${parentScratch.owner.username}/${parentScratch.name}`
|
||||
description += `\nForked from: @${parentScratch.owner?.username ?? "?"}/${parentScratch.name}`
|
||||
if (scratch.description)
|
||||
description += `\n\n${scratch.description}`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user