feat: notes and first item view

This commit is contained in:
Julien Calixte
2026-02-10 22:21:59 +01:00
parent c638914f56
commit 95b4eb7c44
4 changed files with 59 additions and 4 deletions

View File

@@ -0,0 +1,13 @@
export const getUrl = async ({ did, rkey }: { did: string; rkey: string }) => {
const response = await fetch(`https://plc.directory/${did}`)
const {
service: [{ serviceEndpoint }],
} = await response.json()
const url = new URL("/xrpc/com.atproto.repo.getRecord", serviceEndpoint)
url.searchParams.set("repo", did)
url.searchParams.set("collection", "space.litenote.note")
url.searchParams.set("rkey", rkey)
return url.toString()
}