fix: get bsky post url correctly
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
5aafcdc979
commit
5a66555b3b
@ -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 () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user