Fix embeder (#6616)

This commit is contained in:
dan
2024-11-21 22:52:28 +00:00
committed by GitHub
parent dc3a42edb1
commit 391e0c4c18
+2 -2
View File
@@ -436,14 +436,14 @@ function StarterPackEmbed({
// from #/lib/strings/starter-pack.ts // from #/lib/strings/starter-pack.ts
function getStarterPackImage(starterPack: AppBskyGraphDefs.StarterPackView) { function getStarterPackImage(starterPack: AppBskyGraphDefs.StarterPackView) {
const rkey = getRkey(starterPack.uri) const rkey = getRkey({uri: starterPack.uri})
return `https://ogcard.cdn.bsky.app/start/${starterPack.creator.did}/${rkey}` return `https://ogcard.cdn.bsky.app/start/${starterPack.creator.did}/${rkey}`
} }
function getStarterPackHref( function getStarterPackHref(
starterPack: AppBskyGraphDefs.StarterPackViewBasic, starterPack: AppBskyGraphDefs.StarterPackViewBasic,
) { ) {
const rkey = getRkey(starterPack.uri) const rkey = getRkey({uri: starterPack.uri})
const handleOrDid = starterPack.creator.handle || starterPack.creator.did const handleOrDid = starterPack.creator.handle || starterPack.creator.did
return `/starter-pack/${handleOrDid}/${rkey}` return `/starter-pack/${handleOrDid}/${rkey}`
} }