this repo has no description
0
fork

Configure Feed

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

small cleanups

+2 -4
-1
cmd/beemo/notify_mentions.go
··· 60 60 61 61 mentionDIDs := []syntax.DID{} 62 62 for _, raw := range strings.Split(cctx.String("mention-dids"), ",") { 63 - fmt.Println(raw) 64 63 did, err := syntax.ParseDID(raw) 65 64 if err != nil { 66 65 return err
+2 -2
cmd/beemo/notify_reports.go
··· 33 33 Auth: &xrpc.AuthInfo{Handle: cctx.String("handle")}, 34 34 } 35 35 36 - auth, err := comatproto.ServerCreateSession(context.TODO(), xrpcc, &comatproto.ServerCreateSession_Input{ 36 + auth, err := comatproto.ServerCreateSession(ctx, xrpcc, &comatproto.ServerCreateSession_Input{ 37 37 Identifier: xrpcc.Auth.Handle, 38 38 Password: cctx.String("password"), 39 39 }) ··· 60 60 for { 61 61 // refresh session 62 62 xrpcc.Auth.AccessJwt = xrpcc.Auth.RefreshJwt 63 - refresh, err := comatproto.ServerRefreshSession(context.TODO(), xrpcc) 63 + refresh, err := comatproto.ServerRefreshSession(ctx, xrpcc) 64 64 if err != nil { 65 65 return err 66 66 }
-1
cmd/beemo/slack.go
··· 36 36 buf := new(bytes.Buffer) 37 37 buf.ReadFrom(resp.Body) 38 38 if resp.StatusCode != 200 || buf.String() != "ok" { 39 - // TODO: in some cases print body? eg, if short and text 40 39 return fmt.Errorf("failed slack webhook POST request. status=%d", resp.StatusCode) 41 40 } 42 41 return nil