your personal website on atproto - mirror blento.app

fix semble collections

+6 -2
+6 -2
src/lib/cards/social/SembleCollectionCard/index.ts
··· 42 42 collection: 'network.cosmik.collection', 43 43 rkey: collectionRkey 44 44 }).catch(() => undefined), 45 - listRecords({ did, collection: 'network.cosmik.collectionLink' }).catch(() => []), 46 - listRecords({ did, collection: 'network.cosmik.card' }).catch(() => []) 45 + listRecords({ did, collection: 'network.cosmik.collectionLink', limit: 0 }).catch(() => []), 46 + listRecords({ did, collection: 'network.cosmik.card', limit: 0 }).catch(() => []) 47 47 ]); 48 + 49 + console.log(allLinks); 48 50 49 51 if (!collection) return undefined; 50 52 ··· 53 55 .filter((link: any) => link.value.collection?.uri === collectionUri) 54 56 .map((link: any) => link.value.card?.uri) 55 57 ); 58 + 59 + console.log(linkedCardUris); 56 60 57 61 const cards: SembleCard[] = allCards 58 62 .filter((card: any) => linkedCardUris.has(card.uri))