fix: get bsky post url correctly again pls work
All checks were successful
create archive with lfs / tag (push) Successful in 10s

This commit is contained in:
dusk 2024-11-23 05:09:48 +03:00
parent 5a66555b3b
commit 7638e9d960
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw

View File

@ -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 () => {