data endpoint for entity 90008 (aka. a website)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: dont import serverside bsky uri parsing code to clientside

dusk 8a6ad613 ab37a707

+4 -9
-7
src/lib/bluesky.ts
··· 13 13 return client 14 14 } 15 15 16 - export const parseAtUri = (uri: string) => { 17 - if (uri.startsWith("https://bsky.gaze.systems")) { 18 - return uri 19 - } 20 - return `https://bsky.gaze.systems/post/${uri.split('/').pop()}` 21 - } 22 - 23 16 const loginToBsky = async () => { 24 17 const bot = new Bot({ service: "https://bsky.social" }) 25 18 await bot.login({ identifier: 'gaze.systems', password: env.BSKY_PASSWORD ?? "" })
+4 -2
src/routes/log/+page.svelte
··· 1 1 <script lang="ts"> 2 2 import Window from '../../components/window.svelte'; 3 3 import Token from '../../components/token.svelte'; 4 - import { parseAtUri } from '$lib/bluesky.js'; 5 4 6 5 export let data; 7 6 ··· 19 18 20 19 const getOutgoingLink = (name: string, link: string) => { 21 20 if (name === "bsky") { 22 - return parseAtUri(link) 21 + if (link.startsWith("https://bsky.gaze.systems")) { 22 + return link 23 + } 24 + return `https://bsky.gaze.systems/post/${link.split('/').pop()}` 23 25 } 24 26 return link 25 27 }