this repo has no description
0
fork

Configure Feed

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

api: remove ATProto client (use xrpc.Client instead)

There was actually only a single use of this left, in fakermaker.

+1 -19
-9
api/atproto.go
··· 1 - package api 2 - 3 - import ( 4 - "github.com/bluesky-social/indigo/xrpc" 5 - ) 6 - 7 - type ATProto struct { 8 - C *xrpc.Client 9 - }
+1 -2
cmd/fakermaker/main.go
··· 247 247 func genAccounts(cctx *cli.Context) error { 248 248 249 249 // establish atproto client, with admin token for auth 250 - atpc, err := cliutil.GetATPClient(cctx, false) 250 + xrpcc, err := cliutil.GetXrpcClient(cctx, false) 251 251 if err != nil { 252 252 return err 253 253 } 254 - xrpcc := atpc.C 255 254 adminToken := cctx.String("admin-password") 256 255 if len(adminToken) > 0 { 257 256 xrpcc.AdminToken = &adminToken
-8
cmd/gosky/util/util.go
··· 103 103 }, nil 104 104 } 105 105 106 - func GetATPClient(cctx *cli.Context, authreq bool) (*api.ATProto, error) { 107 - xrpcClient, err := GetXrpcClient(cctx, authreq) 108 - if err != nil { 109 - return nil, err 110 - } 111 - return &api.ATProto{C: xrpcClient}, nil 112 - } 113 - 114 106 func loadAuthFromEnv(cctx *cli.Context, req bool) (*xrpc.AuthInfo, error) { 115 107 if a := cctx.String("auth-file"); a != "" { 116 108 if ai, err := ReadAuth(a); err != nil && req {