Mass Block [bsky] Reposts [and more]
0
fork

Configure Feed

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

fix: guard pds field in resolvePds

Winter b297fb0e d19f4abf

+3 -1
+3 -1
index.js
··· 196 196 197 197 // ── social graph ──────────────────────────────────────────────────── 198 198 async function resolvePds(did) { 199 - return (await resolveMiniDoc(did)).pds; 199 + const doc = await resolveMiniDoc(did); 200 + if (typeof doc.pds !== "string") throw new Error(`no pds in slingshot response for ${did}`); 201 + return doc.pds; 200 202 } 201 203 202 204 async function fetchFollowing(did, pdsUrl) {