~ knotless Search/
↑↓ move↵ open⇧↵ all results

johnandersen777.bsky.social/knotless

git that lives in your Atmosphere account

Forked from chadtmiller.com/knotless

0
0
15 lines · 618 B Raw History
import type * as getThread from '#lib/lexicons/dev/knotless/getThread.ts';
import type { PageLoad } from './$types';
import type { AtUriString } from '@atproto/lex';
import { repoPage } from '#lib/data.ts';

export const load: PageLoad = async (event) => {
	const { kind, did, rkey } = event.params;
	const uri = `at://${did}/dev.knotless.${kind}/${rkey}` as AtUriString;
	// A pull's diffs are on its files page: here, only how many files it changes.
	const { repo, answer } = await repoPage<typeof getThread.main>(event, 'dev.knotless.getThread', {
		uri,
		filesOnly: true
	});
	return { repo, thread: answer };
};