data endpoint for entity 90008 (aka. a website)
0
fork

Configure Feed

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

fix get user posts breaking early

dawn d3c91026 27d8753a

+4 -1
+4 -1
eunomia/src/lib/bluesky.ts
··· 46 46 const client = await getBskyClient(); 47 47 const posts: Post[] = []; 48 48 // fetch requested amount of posts 49 - while (posts.length < count - 1 && cursor !== undefined) { 49 + while (posts.length < count - 1) { 50 50 const fetched = ok( 51 51 await client.get('com.atproto.repo.listRecords', { 52 52 params: { repo, collection: 'app.bsky.feed.post', cursor } ··· 61 61 }); 62 62 } 63 63 cursor = fetched.cursor; 64 + if (cursor === undefined) { 65 + break; 66 + } 64 67 } 65 68 return { posts, cursor }; 66 69 };