···210210 try {
211211 // *** Get the specific PDS for the verified user ***
212212 const targetDid = verification.subject;
213213+ /* // Remove PDS lookup - use public API instead
213214 const pdsEndpoint = await getPdsEndpoint(targetDid);
214215215216 if (!pdsEndpoint) {
216217 throw new Error(`Could not find PDS for ${verification.handle || targetDid}`);
217218 }
219219+ */
218220219219- // *** Use direct fetch to get the profile from the correct PDS ***
220220- const profileUrl = `${pdsEndpoint}/xrpc/app.bsky.actor.getProfile?actor=${encodeURIComponent(targetDid)}`;
221221+ // *** Use direct fetch from the public AppView to get the profile ***
222222+ const publicApiBase = 'https://public.api.bsky.app';
223223+ const profileUrl = `${publicApiBase}/xrpc/app.bsky.actor.getProfile?actor=${encodeURIComponent(targetDid)}`;
221224 const profileResponse = await fetch(profileUrl);
222225223226 if (!profileResponse.ok) {
224227 // If profile fetch fails (e.g., 404), mark validity check failed
225225- throw new Error(`Failed to fetch profile from ${pdsEndpoint}: ${profileResponse.status}`);
228228+ throw new Error(`Failed to fetch profile from public API: ${profileResponse.status}`);
226229 }
227230 const profileData = await profileResponse.json();
228231