From 7638e9d960d3bf14fb8f31add83bfa538b6f2a09 Mon Sep 17 00:00:00 2001 From: dusk Date: Sat, 23 Nov 2024 05:09:48 +0300 Subject: [PATCH] fix: get bsky post url correctly again pls work --- src/lib/bluesky.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/bluesky.ts b/src/lib/bluesky.ts index 306b614..1835db0 100644 --- a/src/lib/bluesky.ts +++ b/src/lib/bluesky.ts @@ -17,11 +17,11 @@ export const postToBsky = async (text: string) => { let client = await getBskyClient() const rt = new RichText({ text }) await rt.detectFacets(client) - const {cid} = await client.post({ + const {uri} = await client.post({ text: rt.text, facets: rt.facets, }) - return `https://bsky.gaze.systems/post/${cid}` + return `https://bsky.gaze.systems/post/${uri.split('/').pop()}` } const loginToBsky = async () => {