a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

check if image fetch works before upload

+1
+1
actions/publishToPublication.ts
··· 73 73 await Promise.all( 74 74 images.map(async (b) => { 75 75 let data = await fetch(b.data.src); 76 + if (data.status !== 200) return; 76 77 let binary = await data.blob(); 77 78 let blob = await agent.com.atproto.repo.uploadBlob(binary, { 78 79 headers: { "Content-Type": binary.type },