From 5a66555b3b8edaa0f32bab44d86bc8b7c3a1eaf7 Mon Sep 17 00:00:00 2001 From: dusk Date: Sat, 23 Nov 2024 05:00:29 +0300 Subject: [PATCH] fix: get bsky post url correctly --- 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 d8e3793..306b614 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 {uri} = await client.post({ + const {cid} = await client.post({ text: rt.text, facets: rt.facets, }) - return uri + return `https://bsky.gaze.systems/post/${cid}` } const loginToBsky = async () => {