diff --git a/api/extra.go b/api/extra.go index a4afa5626..f0c98432b 100644 --- a/api/extra.go +++ b/api/extra.go @@ -164,7 +164,6 @@ func (dr *ProdHandleResolver) resolveWellKnown(ctx context.Context, handle strin } func (dr *ProdHandleResolver) resolveDNS(ctx context.Context, handle string) (string, error) { - res, err := net.LookupTXT("_atproto." + handle) if err != nil { return "", fmt.Errorf("handle lookup failed: %w", err) diff --git a/cmd/gosky/admin.go b/cmd/gosky/admin.go index 799814d53..2c7d30605 100644 --- a/cmd/gosky/admin.go +++ b/cmd/gosky/admin.go @@ -459,9 +459,19 @@ var disableInvitesCmd = &cli.Command{ handle = resp } - return atproto.AdminDisableAccountInvites(ctx, xrpcc, &atproto.AdminDisableAccountInvites_Input{ + if err := atproto.AdminDisableAccountInvites(ctx, xrpcc, &atproto.AdminDisableAccountInvites_Input{ Account: handle, - }) + }); err != nil { + return err + } + + if err := atproto.AdminDisableInviteCodes(ctx, xrpcc, &atproto.AdminDisableInviteCodes_Input{ + Accounts: []string{handle}, + }); err != nil { + return err + } + + return nil }, }