Better starterpack embed (#4659)

This commit is contained in:
Hailey
2024-06-26 17:24:33 -07:00
committed by GitHub
parent da4dfeb9cf
commit 878b0476dd
6 changed files with 103 additions and 32 deletions
+4
View File
@@ -99,3 +99,7 @@ export function createStarterPackUri({
}): string | null {
return new AtUri(`at://${did}/app.bsky.graph.starterpack/${rkey}`).toString()
}
export function startUriToStarterPackUri(uri: string) {
return uri.replace('/start/', '/starter-pack/')
}