[READ ONLY MIRROR] Spark Social AppView Server github.com/sprksocial/server
atproto deno hono lexicon
5
fork

Configure Feed

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

return handle on resolver (#32)

authored by

Davi Rodrigues and committed by
GitHub
1a01775f cc0d1efb

+3 -3
+3 -3
services/appview/utils/id-resolver.ts
··· 20 20 return { 21 21 async resolveDidToHandle(did: string): Promise<string> { 22 22 const didDoc = await resolver.did.resolveAtprotoData(did); 23 - const resolvedHandle = await resolver.handle.resolve(didDoc.handle); 24 - if (resolvedHandle === did) { 23 + const resolvedDid = await resolver.handle.resolve(didDoc.handle); 24 + if (resolvedDid === did) { 25 25 return didDoc.handle; 26 26 } 27 - return did; 27 + return "unknown.invalid"; 28 28 }, 29 29 30 30 async resolveDidToDidDoc(did: string): Promise<AtprotoData> {