Monorepo for Tangled
0
fork

Configure Feed

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

idresolver: add PDSClient() helper to reduce duplication #7

open opened by nolith.dev targeting master from local-dev

Add a PDSClient() method on *Resolver that combines the common pattern of resolving an identity and creating an XRPC client for its PDS endpoint.

This pattern was duplicated across ~15 call sites in knotserver and spindle. Each call site manually called ResolveIdent(), checked Handle.IsInvalidHandle(), called PDSEndpoint(), and constructed an xrpc.Client. The new helper consolidates this into a single call.

Also fixes knotserver/internal.go PushAllowed handler which was creating a new DefaultResolver on every request instead of using the shared resolver.

AI-assisted: GitLab Duo Agentic Chat (Claude Opus 4.6) Signed-off-by: Alessio Caiazza code.git@caiazza.info

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:nzep3slobztdph3kxswzbing/sh.tangled.repo.pull/3mgmn4natsc22
Diff #0

No differences found between the selected revisions.

History

1 round 0 comments
sign up or login to add to the discussion
nolith.dev submitted #0
patch application failed: error: No valid patches in input (allow with "--allow-empty")
expand 0 comments