diff --git a/src/app/dashboard/home/page.tsx b/src/app/dashboard/home/page.tsx index d0fdd146..b82cef17 100644 --- a/src/app/dashboard/home/page.tsx +++ b/src/app/dashboard/home/page.tsx @@ -1,5 +1,5 @@ import FeedContainer from "@/containers/FeedContainer"; -export default function Home() { +export default async function Home() { return ; } diff --git a/src/lib/hooks/bsky/feed/usePublishPost.tsx b/src/lib/hooks/bsky/feed/usePublishPost.tsx index fe4fb601..4c14f44e 100644 --- a/src/lib/hooks/bsky/feed/usePublishPost.tsx +++ b/src/lib/hooks/bsky/feed/usePublishPost.tsx @@ -178,7 +178,9 @@ export default function usePublishPost(props: Props) { if (linkCard.image) { try { const image = await fetch(linkCard.image); - const blob = await image.blob(); + const blob = await compressImage( + (await image.blob()) as UploadImage + ); const uploaded = await agent.uploadBlob( new Uint8Array(await blob.arrayBuffer()), {