this repo has no description
0
fork

Configure Feed

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

more handle resolving fixes, also switch to mod.bsky.app where necessary

+15 -6
+5 -1
cmd/gosky/admin.go
··· 29 29 EnvVars: []string{"ATP_AUTH_ADMIN_PASSWORD"}, 30 30 Required: true, 31 31 }, 32 + &cli.StringFlag{ 33 + Name: "admin-endpoint", 34 + Value: "https://mod.bsky.app", 35 + }, 32 36 }, 33 37 Subcommands: []*cli.Command{ 34 38 buildInviteTreeCmd, ··· 78 82 79 83 adminKey := cctx.String("admin-password") 80 84 xrpcc.AdminToken = &adminKey 81 - xrpcc.Host = id.PDSEndpoint() 85 + xrpcc.Host = cctx.String("admin-endpoint") 82 86 83 87 rep, err := toolsozone.ModerationGetRepo(ctx, xrpcc, did) 84 88 if err != nil {
+9 -4
cmd/gosky/handle.go
··· 31 31 if err != nil { 32 32 return err 33 33 } 34 - handle := args[0] 34 + 35 + h, err := syntax.ParseHandle(args[0]) 36 + if err != nil { 37 + return fmt.Errorf("resolving %q: %w", args[0], err) 38 + } 35 39 36 40 dir := identity.DefaultDirectory() 37 - resp, err := dir.LookupHandle(ctx, syntax.Handle(handle)) 41 + 42 + res, err := dir.LookupHandle(ctx, h) 38 43 if err != nil { 39 - return fmt.Errorf("resolving %q: %w", handle, err) 44 + return err 40 45 } 41 46 42 - fmt.Println(resp.DID) 47 + fmt.Println(res.DID) 43 48 44 49 return nil 45 50 },
+1 -1
cmd/gosky/main.go
··· 765 765 since := time.Now().Add(-1 * delta).UnixMilli() 766 766 767 767 xrpcc := &xrpc.Client{ 768 - Host: "https://api.bsky.app", 768 + Host: "https://mod.bsky.app", 769 769 } 770 770 771 771 for {