From bd9a99c7a79f9ce97d9112c5424b440fdeeacd2d Mon Sep 17 00:00:00 2001 From: afterlifepro Date: Thu, 27 Nov 2025 20:35:05 +0000 Subject: [PATCH] fix landing --- landing/landing.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/landing/landing.ts b/landing/landing.ts index 4ae6172..e061699 100644 --- a/landing/landing.ts +++ b/landing/landing.ts @@ -1,7 +1,7 @@ import css from "./css.css" with { type: "text" }; import heading from "./heading.txt" with { type: "text" }; -Deno.serve({ port: 8000 }, (req) => { +Deno.serve({ port: 8910 }, (req) => { switch (new URL(req.url).pathname) { case "/css": return new Response(css, { @@ -26,6 +26,10 @@ Deno.serve({ port: 8000 }, (req) => { // type cast because no point validating for smthn like this // real type has more info; not needed here .then((res) => res.json() as Promise<{ repos: { did: string }[] }>) + .then((res) => { + console.log(res); + return res; + }) .then((res) => // get display name, handle, and did for each user res.repos.map((repo) => ({ @@ -33,7 +37,7 @@ Deno.serve({ port: 8000 }, (req) => { `http://pi:8000/xrpc/com.atproto.repo.getRecord?repo=${repo.did}&collection=app.bsky.actor.profile&rkey=self` ) .then((res) => res.json()) - .then((profile) => profile?.value?.displayName), + .then((profile) => profile?.value?.displayName ?? repo), // dont validate handles because I'm Lazy + trust myself handle: fetch( repo.did.startsWith("did:plc") -- 2.51.2