Skip to content

Commit 8636e74

Browse files
committed
Merge branch 'preview'
2 parents e11bc03 + 36c68ec commit 8636e74

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/app/dashboard/home/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import FeedContainer from "@/containers/FeedContainer";
22

3-
export default function Home() {
3+
export default async function Home() {
44
return <FeedContainer feed="timeline" />;
55
}

src/lib/hooks/bsky/feed/usePublishPost.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ export default function usePublishPost(props: Props) {
178178
if (linkCard.image) {
179179
try {
180180
const image = await fetch(linkCard.image);
181-
const blob = await image.blob();
181+
const blob = await compressImage(
182+
(await image.blob()) as UploadImage
183+
);
182184
const uploaded = await agent.uploadBlob(
183185
new Uint8Array(await blob.arrayBuffer()),
184186
{

0 commit comments

Comments
 (0)