diff --git a/atproto/atclient/cmd/atp-client-demo/main.go b/atproto/atclient/cmd/atp-client-demo/main.go index 0f6479b7..b97d4d1d 100644 --- a/atproto/atclient/cmd/atp-client-demo/main.go +++ b/atproto/atclient/cmd/atp-client-demo/main.go @@ -186,7 +186,7 @@ func runLoginAuth(ctx context.Context, cmd *cli.Command) error { dir := identity.DefaultDirectory() - c, err := atclient.LoginWithPassword(ctx, dir, *atid, cmd.String("password"), "", nil) + c, err := atclient.LoginWithPassword(ctx, dir, atid, cmd.String("password"), "", nil) if err != nil { return err } @@ -214,7 +214,7 @@ func runGetFeedAuth(ctx context.Context, cmd *cli.Command) error { dir := identity.DefaultDirectory() - c, err := atclient.LoginWithPassword(ctx, dir, *atid, cmd.String("password"), "", nil) + c, err := atclient.LoginWithPassword(ctx, dir, atid, cmd.String("password"), "", nil) if err != nil { return err } diff --git a/atproto/auth/oauth/oauth.go b/atproto/auth/oauth/oauth.go index 663a3f43..cd932473 100644 --- a/atproto/auth/oauth/oauth.go +++ b/atproto/auth/oauth/oauth.go @@ -538,7 +538,7 @@ func (app *ClientApp) StartAuthFlow(ctx context.Context, identifier string) (str if err != nil { return "", fmt.Errorf("not a valid account identifier (%s): %w", identifier, err) } - ident, err := app.Dir.Lookup(ctx, *atid) + ident, err := app.Dir.Lookup(ctx, atid) if err != nil { return "", fmt.Errorf("failed to resolve username (%s): %w", identifier, err) } diff --git a/atproto/identity/cmd/atp-id/main.go b/atproto/identity/cmd/atp-id/main.go index c920c0e2..aebb1708 100644 --- a/atproto/identity/cmd/atp-id/main.go +++ b/atproto/identity/cmd/atp-id/main.go @@ -59,7 +59,7 @@ func runLookup(ctx context.Context, cmd *cli.Command) error { slog.Info("valid syntax", "at-identifier", id) dir := identity.DefaultDirectory() - acc, err := dir.Lookup(ctx, *id) + acc, err := dir.Lookup(ctx, id) if err != nil { return err } diff --git a/cmd/bluepages/main.go b/cmd/bluepages/main.go index 28bad294..0676c5c6 100644 --- a/cmd/bluepages/main.go +++ b/cmd/bluepages/main.go @@ -292,7 +292,7 @@ func runLookupCmd(ctx context.Context, cmd *cli.Command) error { return err } - ident, err := dir.Lookup(ctx, *atid) + ident, err := dir.Lookup(ctx, atid) if err != nil { return err } @@ -317,12 +317,12 @@ func runRefreshCmd(ctx context.Context, cmd *cli.Command) error { return err } - err = dir.Purge(ctx, *atid) + err = dir.Purge(ctx, atid) if err != nil { return err } - ident, err := dir.Lookup(ctx, *atid) + ident, err := dir.Lookup(ctx, atid) if err != nil { return err } diff --git a/cmd/gosky/admin.go b/cmd/gosky/admin.go index f01a721a..b35ca17f 100644 --- a/cmd/gosky/admin.go +++ b/cmd/gosky/admin.go @@ -74,7 +74,7 @@ var checkUserCmd = &cli.Command{ return err } - id, err := dir.Lookup(ctx, *ident) + id, err := dir.Lookup(ctx, ident) if err != nil { return fmt.Errorf("resolve identifier %q: %w", cctx.Args().First(), err) } diff --git a/cmd/gosky/debug.go b/cmd/gosky/debug.go index 7aa644c2..46c7b370 100644 --- a/cmd/gosky/debug.go +++ b/cmd/gosky/debug.go @@ -855,7 +855,7 @@ var debugCompareReposCmd = &cli.Command{ if !cctx.IsSet("host-1") { dir := identity.DefaultDirectory() - ident, err := dir.Lookup(ctx, *did) + ident, err := dir.Lookup(ctx, did) if err != nil { return err } diff --git a/cmd/gosky/main.go b/cmd/gosky/main.go index 49385f47..948c4612 100644 --- a/cmd/gosky/main.go +++ b/cmd/gosky/main.go @@ -445,7 +445,7 @@ var getRecordCmd = &cli.Command{ return err } - resp, err := identity.DefaultDirectory().Lookup(ctx, *atid) + resp, err := identity.DefaultDirectory().Lookup(ctx, atid) if err != nil { return err } @@ -806,7 +806,7 @@ var verifyUserCmd = &cli.Command{ return err } - ident, err := identity.DefaultDirectory().Lookup(ctx, *idf) + ident, err := identity.DefaultDirectory().Lookup(ctx, idf) if err != nil { return err } diff --git a/cmd/gosky/sync.go b/cmd/gosky/sync.go index 357131a1..13c60f42 100644 --- a/cmd/gosky/sync.go +++ b/cmd/gosky/sync.go @@ -43,7 +43,7 @@ var syncGetRepoCmd = &cli.Command{ return err } dir := identity.DefaultDirectory() - ident, err := dir.Lookup(ctx, *atid) + ident, err := dir.Lookup(ctx, atid) if err != nil { return err } @@ -98,7 +98,7 @@ var syncGetRootCmd = &cli.Command{ } dir := identity.DefaultDirectory() - ident, err := dir.Lookup(ctx, *atid) + ident, err := dir.Lookup(ctx, atid) if err != nil { return err } diff --git a/cmd/hepa/main.go b/cmd/hepa/main.go index a50f9561..9fa1ee62 100644 --- a/cmd/hepa/main.go +++ b/cmd/hepa/main.go @@ -449,7 +449,7 @@ var processRecentCmd = &cli.Command{ return err } - return capture.FetchAndProcessRecent(ctx, srv.Engine, *atid, cmd.Int("limit")) + return capture.FetchAndProcessRecent(ctx, srv.Engine, atid, cmd.Int("limit")) }, } @@ -479,7 +479,7 @@ var captureRecentCmd = &cli.Command{ return err } - cap, err := capture.CaptureRecent(ctx, srv.Engine, *atid, cmd.Int("limit")) + cap, err := capture.CaptureRecent(ctx, srv.Engine, atid, cmd.Int("limit")) if err != nil { return err } diff --git a/search/handlers.go b/search/handlers.go index a5d2b27c..9f4e0495 100644 --- a/search/handlers.go +++ b/search/handlers.go @@ -107,7 +107,7 @@ func (s *Server) handleSearchPostsSkeleton(e echo.Context) error { } } if atid.IsHandle() { - ident, err := s.dir.Lookup(e.Request().Context(), *atid) + ident, err := s.dir.Lookup(e.Request().Context(), atid) if err != nil { return e.JSON(400, map[string]any{ "error": "BadRequest", @@ -134,7 +134,7 @@ func (s *Server) handleSearchPostsSkeleton(e echo.Context) error { } } if atid.IsHandle() { - ident, err := s.dir.Lookup(e.Request().Context(), *atid) + ident, err := s.dir.Lookup(e.Request().Context(), atid) if err != nil { return e.JSON(400, map[string]any{ "error": "BadRequest",