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

This commit is contained in:
dusk 2024-11-23 05:00:29 +03:00
parent 5aafcdc979
commit 5a66555b3b
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 {uri} = await client.post({ const {cid} = await client.post({
text: rt.text, text: rt.text,
facets: rt.facets, facets: rt.facets,
}) })
return uri return `https://bsky.gaze.systems/post/${cid}`
} }
const loginToBsky = async () => { const loginToBsky = async () => {