diff --git a/src/lib/components/PublicationCard.svelte b/src/lib/components/PublicationCard.svelte index 7c4677e..66f5176 100644 --- a/src/lib/components/PublicationCard.svelte +++ b/src/lib/components/PublicationCard.svelte @@ -1,14 +1,15 @@ @@ -159,14 +205,19 @@ diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 89ffb89..1cb5bbf 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -9,6 +9,13 @@ export function parseAtUri(uri: string) { } } +export function createAtUri({ did, collection, rkey }: { did: string, collection: string, rkey: string }) { + if (did && collection && rkey) { + return `at://${did}/${collection}/${rkey}`; + } + return undefined; +} + export type MiniDoc = { did: string; handle: string; diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 967fef5..f7d6688 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,7 +1,7 @@