this repo has no description
0
fork

Configure Feed

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

print emails for admin commands to make bot detection easier (#239)

authored by

Whyrusleeping and committed by
GitHub
988c1e0d 7467a49d

+17 -2
+17 -2
cmd/gosky/admin.go
··· 110 110 111 111 fmt.Println(rep.Handle) 112 112 fmt.Println(rep.Did) 113 - fmt.Println(rep.Email) 113 + if rep.Email != nil { 114 + fmt.Println(*rep.Email) 115 + } 114 116 fmt.Println("indexed at: ", rep.IndexedAt) 115 117 fmt.Printf("Invited by: %s\n", invby) 116 118 if rep.InvitesDisabled != nil && *rep.InvitesDisabled { ··· 518 520 Name: "disable-invites", 519 521 Usage: "additionally disable invites for all printed DIDs", 520 522 }, 523 + &cli.BoolFlag{ 524 + Name: "print-emails", 525 + }, 521 526 }, 522 527 ArgsUsage: `[handle]`, 523 528 Action: func(cctx *cli.Context) error { ··· 561 566 if err != nil { 562 567 return fmt.Errorf("getRepo %s: %w", did, err) 563 568 } 569 + fmt.Print(next) 570 + 571 + if cctx.Bool("print-emails") { 572 + if rep.Email != nil { 573 + fmt.Println(" ", *rep.Email) 574 + } else { 575 + fmt.Println(" NO EMAIL") 576 + } 577 + } else { 578 + fmt.Println() 579 + } 564 580 565 581 for _, inv := range rep.Invites { 566 582 for _, u := range inv.Uses { 567 - fmt.Println(u.UsedBy) 568 583 queue = append(queue, u.UsedBy) 569 584 } 570 585 }