this repo has no description
0
fork

Configure Feed

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

make disableInvites actually disable existing invites as well (#301)

authored by

Whyrusleeping and committed by
GitHub
f934d626 2fcb59a1

+12 -3
-1
api/extra.go
··· 164 164 } 165 165 166 166 func (dr *ProdHandleResolver) resolveDNS(ctx context.Context, handle string) (string, error) { 167 - 168 167 res, err := net.LookupTXT("_atproto." + handle) 169 168 if err != nil { 170 169 return "", fmt.Errorf("handle lookup failed: %w", err)
+12 -2
cmd/gosky/admin.go
··· 459 459 handle = resp 460 460 } 461 461 462 - return atproto.AdminDisableAccountInvites(ctx, xrpcc, &atproto.AdminDisableAccountInvites_Input{ 462 + if err := atproto.AdminDisableAccountInvites(ctx, xrpcc, &atproto.AdminDisableAccountInvites_Input{ 463 463 Account: handle, 464 - }) 464 + }); err != nil { 465 + return err 466 + } 467 + 468 + if err := atproto.AdminDisableInviteCodes(ctx, xrpcc, &atproto.AdminDisableInviteCodes_Input{ 469 + Accounts: []string{handle}, 470 + }); err != nil { 471 + return err 472 + } 473 + 474 + return nil 465 475 }, 466 476 } 467 477