···11import css from "./css.css" with { type: "text" };
22import heading from "./heading.txt" with { type: "text" };
3344-Deno.serve({ port: 8000 }, (req) => {
44+Deno.serve({ port: 8910 }, (req) => {
55 switch (new URL(req.url).pathname) {
66 case "/css":
77 return new Response(css, {
···2626 // type cast because no point validating for smthn like this
2727 // real type has more info; not needed here
2828 .then((res) => res.json() as Promise<{ repos: { did: string }[] }>)
2929+ .then((res) => {
3030+ console.log(res);
3131+ return res;
3232+ })
2933 .then((res) =>
3034 // get display name, handle, and did for each user
3135 res.repos.map((repo) => ({
···3337 `http://pi:8000/xrpc/com.atproto.repo.getRecord?repo=${repo.did}&collection=app.bsky.actor.profile&rkey=self`
3438 )
3539 .then((res) => res.json())
3636- .then((profile) => profile?.value?.displayName),
4040+ .then((profile) => profile?.value?.displayName ?? repo),
3741 // dont validate handles because I'm Lazy + trust myself
3842 handle: fetch(
3943 repo.did.startsWith("did:plc")