mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
fix: improve paste description
This commit is contained in:
@@ -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' : ''}.`}
|
||||||
|
|||||||
Reference in New Issue
Block a user