diff --git a/apps/site/app/(base)/layout.tsx b/apps/site/app/(base)/layout.tsx index 5596eda7..2a1facab 100644 --- a/apps/site/app/(base)/layout.tsx +++ b/apps/site/app/(base)/layout.tsx @@ -11,7 +11,7 @@ export default function BaseLayout({ return (
- {/* */} +
diff --git a/apps/site/app/(base)/page.tsx b/apps/site/app/(base)/page.tsx index 287035c7..b68cea0b 100644 --- a/apps/site/app/(base)/page.tsx +++ b/apps/site/app/(base)/page.tsx @@ -18,7 +18,7 @@ export default async function Home({ return ( <> - {/* {adds.items.slice(0, 60).map((add, index) => + {adds.items.slice(0, 60).map((add, index) => add.removed ? null : ( ), - )} */} + )} {/* @ts-ignore */} diff --git a/apps/site/app/channel/[id]/page.tsx b/apps/site/app/channel/[id]/page.tsx index 65c745e3..5d73451d 100644 --- a/apps/site/app/channel/[id]/page.tsx +++ b/apps/site/app/channel/[id]/page.tsx @@ -31,7 +31,7 @@ export default async function Channel({ return (
- {/* */} +
diff --git a/apps/site/app/directory/page.tsx b/apps/site/app/directory/page.tsx index 16084f48..774fc8e0 100644 --- a/apps/site/app/directory/page.tsx +++ b/apps/site/app/directory/page.tsx @@ -40,7 +40,7 @@ export default async function Directory({ return (
- {/* */} +
diff --git a/apps/site/components/server/MarqueeWrapper.tsx b/apps/site/components/server/MarqueeWrapper.tsx index 7fcb6a59..839e1142 100644 --- a/apps/site/components/server/MarqueeWrapper.tsx +++ b/apps/site/components/server/MarqueeWrapper.tsx @@ -14,6 +14,8 @@ export async function MarqueeWrapper() { let marqueeActions: Action[] = [] const { data } = await getMarqueeData() + console.log("is getalldata working: ", data) + if (data) { // fetch usernames for adds const usernames = await Promise.all( @@ -23,6 +25,8 @@ export async function MarqueeWrapper() { }), ), ) + + console.log("is get usernames working ", usernames) // fetch metadata for items // @ts-ignore const { metadata } = await getAddsMetadata(data) @@ -32,7 +36,7 @@ export async function MarqueeWrapper() { const itemMetadata = metadata.data[add.item.uri] return { userName: usernames[index], - itemName: itemMetadata.name, + itemName: itemMetadata.name ? itemMetadata.name : '-', channelName: data[index].channel.name, channelId: data[index].channel.id, channelIndex: data[index].channelIndex, diff --git a/apps/site/lib/username/getUsername.ts b/apps/site/lib/username/getUsername.ts index 80992bf9..0caee10a 100644 --- a/apps/site/lib/username/getUsername.ts +++ b/apps/site/lib/username/getUsername.ts @@ -10,7 +10,7 @@ export async function getUsername({ id }: { id: bigint }) { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ id: idString.toString() }), + body: JSON.stringify({ id: idString }), }, )