this repo has no description
0
fork

Configure Feed

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

fix invites command when not targeting a user (#130)

The lexicon changed from an option string to an array of strings, this
is just catching up to that properly.

authored by

Whyrusleeping and committed by
GitHub
4b3e7cab 362e5365

+3 -3
+3 -3
cmd/gosky/main.go
··· 1081 1081 return nil 1082 1082 } 1083 1083 1084 - var usrdid *string 1084 + var usrdid []string 1085 1085 if forUser := cctx.Args().Get(0); forUser != "" { 1086 1086 resp, err := comatproto.IdentityResolveHandle(context.TODO(), xrpcc, forUser) 1087 1087 if err != nil { 1088 1088 return fmt.Errorf("resolving handle: %w", err) 1089 1089 } 1090 1090 1091 - usrdid = &resp.Did 1091 + usrdid = []string{resp.Did} 1092 1092 } 1093 1093 1094 1094 xrpcc.AdminToken = &adminKey 1095 1095 resp, err := comatproto.ServerCreateInviteCodes(context.TODO(), xrpcc, &comatproto.ServerCreateInviteCodes_Input{ 1096 1096 UseCount: int64(count), 1097 - ForAccounts: []string{*usrdid}, 1097 + ForAccounts: usrdid, 1098 1098 CodeCount: int64(num), 1099 1099 }) 1100 1100 if err != nil {