This repository has no description
0

Configure Feed

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

Update Verifier to use public API for profile fetching instead of PDS lookup

+6 -3
+6 -3
src/components/Verifier/Verifier.js
··· 210 210 try { 211 211 // *** Get the specific PDS for the verified user *** 212 212 const targetDid = verification.subject; 213 + /* // Remove PDS lookup - use public API instead 213 214 const pdsEndpoint = await getPdsEndpoint(targetDid); 214 215 215 216 if (!pdsEndpoint) { 216 217 throw new Error(`Could not find PDS for ${verification.handle || targetDid}`); 217 218 } 219 + */ 218 220 219 - // *** Use direct fetch to get the profile from the correct PDS *** 220 - const profileUrl = `${pdsEndpoint}/xrpc/app.bsky.actor.getProfile?actor=${encodeURIComponent(targetDid)}`; 221 + // *** Use direct fetch from the public AppView to get the profile *** 222 + const publicApiBase = 'https://public.api.bsky.app'; 223 + const profileUrl = `${publicApiBase}/xrpc/app.bsky.actor.getProfile?actor=${encodeURIComponent(targetDid)}`; 221 224 const profileResponse = await fetch(profileUrl); 222 225 223 226 if (!profileResponse.ok) { 224 227 // If profile fetch fails (e.g., 404), mark validity check failed 225 - throw new Error(`Failed to fetch profile from ${pdsEndpoint}: ${profileResponse.status}`); 228 + throw new Error(`Failed to fetch profile from public API: ${profileResponse.status}`); 226 229 } 227 230 const profileData = await profileResponse.json(); 228 231