Skip to content

Commit

Permalink
Add mdtest command for resolving newsletter invite link
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Oct 22, 2023
1 parent 4052539 commit 7c1b618
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mdtest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,13 @@ func handleCmd(cmd string, args []string) {
} else {
log.Infof("Got info: %+v", meta)
}
case "getnewsletterinvite":
meta, err := cli.GetNewsletterInfoWithInvite(args[0])
if err != nil {
log.Errorf("Failed to get info: %v", err)
} else {
log.Infof("Got info: %+v", meta)
}
case "livesubscribenewsletter":
if len(args) < 1 {
log.Errorf("Usage: livesubscribenewsletter <jid>")
Expand Down

0 comments on commit 7c1b618

Please sign in to comment.