fix: improve paste description

This commit is contained in:
2026-04-18 19:08:57 -04:00
parent edffd5490f
commit 60796a85fb
@@ -508,7 +508,7 @@
> >
{#if data.paste} {#if data.paste}
{@const pasteDescription = `A ${syntaxes[data.paste.syntax].name} paste on Sharpbin created by ${ {@const pasteDescription = `A ${syntaxes[data.paste.syntax].name} paste on Sharpbin created by ${
data.paste.author ? data.paste.author.username : 'Anonymous' data.paste.author ? data.paste.author.username : 'an anonymous user'
}, created on ${ }, created on ${
extractDateFromUUIDv7(data.paste.uuid)?.toLocaleDateString() ?? 'Unknown Date' extractDateFromUUIDv7(data.paste.uuid)?.toLocaleDateString() ?? 'Unknown Date'
} with ${data.paste.views} view${data.paste.views !== 1 ? 's' : ''}.`} } with ${data.paste.views} view${data.paste.views !== 1 ? 's' : ''}.`}