Skip to content

Commit

Permalink
Merge branch 'preview'
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelfan committed Dec 16, 2023
2 parents e11bc03 + 36c68ec commit 8636e74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/dashboard/home/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import FeedContainer from "@/containers/FeedContainer";

export default function Home() {
export default async function Home() {
return <FeedContainer feed="timeline" />;
}
4 changes: 3 additions & 1 deletion src/lib/hooks/bsky/feed/usePublishPost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
{
Expand Down

0 comments on commit 8636e74

Please sign in to comment.