fix: get bsky post url correctly again pls work
All checks were successful
create archive with lfs / tag (push) Successful in 10s
All checks were successful
create archive with lfs / tag (push) Successful in 10s
This commit is contained in:
parent
5a66555b3b
commit
7638e9d960
@ -17,11 +17,11 @@ export const postToBsky = async (text: string) => {
|
|||||||
let client = await getBskyClient()
|
let client = await getBskyClient()
|
||||||
const rt = new RichText({ text })
|
const rt = new RichText({ text })
|
||||||
await rt.detectFacets(client)
|
await rt.detectFacets(client)
|
||||||
const {cid} = await client.post({
|
const {uri} = await client.post({
|
||||||
text: rt.text,
|
text: rt.text,
|
||||||
facets: rt.facets,
|
facets: rt.facets,
|
||||||
})
|
})
|
||||||
return `https://bsky.gaze.systems/post/${cid}`
|
return `https://bsky.gaze.systems/post/${uri.split('/').pop()}`
|
||||||
}
|
}
|
||||||
|
|
||||||
const loginToBsky = async () => {
|
const loginToBsky = async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user