johnandersen777.bsky.social/knotless
git that lives in your Atmosphere account
Forked from chadtmiller.com/knotless
0
0
import type * as getOwnProfile from '#lib/lexicons/dev/knotless/getOwnProfile.ts';
import type * as getProfile from '#lib/lexicons/dev/knotless/getProfile.ts';
import type { PageLoad } from './$types';
import { xrpc } from '#lib/data.ts';
/** What the account's knotless profile holds, and how it shows with its Bluesky one under it: none for no one. */
export const load: PageLoad = async (event) => {
const { me } = await event.parent();
if (!me) return { own: null, shown: null };
const [own, shown] = await Promise.all([
xrpc<typeof getOwnProfile.main>(event, 'dev.knotless.getOwnProfile', {}),
xrpc<typeof getProfile.main>(event, 'dev.knotless.getProfile', { actor: me.did })
]);
return { own, shown };
};