this repo has no description
1
fork

Configure Feed

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

clean up

Signed-off-by: Marius Kimmina <mar.kimmina@gmail.com>

-10
-10
internal/atproto/client.go
··· 56 56 57 57 // ResolvePDS finds the PDS endpoint for a given DID using plc.directory 58 58 func (c *Client) ResolvePDS(ctx context.Context, did string) (string, error) { 59 - // 1. Try describeRepo first (if we are on the AppView, it works and is faster) 60 - desc, err := atproto.RepoDescribeRepo(ctx, c.XRPC, did) 61 - if err == nil && desc.DidDoc != nil { 62 - // Parse the DidDoc from the response 63 - // Note: indigo might return it as a map or struct. 64 - // Let's rely on the public directory if this fails or is complex to parse from the generic type. 65 - // Actually, let's just use the PLC directory directly for simplicity and reliability. 66 - } 67 - 68 - // 2. Fallback to PLC Directory 69 59 req, err := http.NewRequestWithContext(ctx, "GET", fmt.Sprintf("https://plc.directory/%s", did), nil) 70 60 if err != nil { 71 61 return "", err