From 8a6ad6133e9833cf4e4443c63b30a42a9e3962e4 Mon Sep 17 00:00:00 2001 From: dusk Date: Mon, 16 Dec 2024 18:26:00 +0300 Subject: [PATCH] fix: dont import serverside bsky uri parsing code to clientside --- src/lib/bluesky.ts | 7 ------- src/routes/log/+page.svelte | 6 ++++-- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/lib/bluesky.ts b/src/lib/bluesky.ts index 671b7a5..11b8100 100644 --- a/src/lib/bluesky.ts +++ b/src/lib/bluesky.ts @@ -13,13 +13,6 @@ export const getBskyClient = async () => { return client } -export const parseAtUri = (uri: string) => { - if (uri.startsWith("https://bsky.gaze.systems")) { - return uri - } - return `https://bsky.gaze.systems/post/${uri.split('/').pop()}` -} - const loginToBsky = async () => { const bot = new Bot({ service: "https://bsky.social" }) await bot.login({ identifier: 'gaze.systems', password: env.BSKY_PASSWORD ?? "" }) diff --git a/src/routes/log/+page.svelte b/src/routes/log/+page.svelte index 43c3c61..72fa70e 100644 --- a/src/routes/log/+page.svelte +++ b/src/routes/log/+page.svelte @@ -1,7 +1,6 @@