this repo has no description
0
fork

Configure Feed

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

api: start updating 'did' to 'repo' on repo endpoints

+16 -16
+1 -1
api/atproto/repocreateRecord.go
··· 15 15 type RepoCreateRecord_Input struct { 16 16 LexiconTypeID string `json:"$type,omitempty"` 17 17 Collection string `json:"collection" cborgen:"collection"` 18 - Did string `json:"did" cborgen:"did"` 18 + Repo string `json:"repo" cborgen:"repo"` 19 19 Record util.LexiconTypeDecoder `json:"record" cborgen:"record"` 20 20 Rkey *string `json:"rkey,omitempty" cborgen:"rkey"` 21 21 SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit"`
+1 -1
api/atproto/repoputRecord.go
··· 15 15 type RepoPutRecord_Input struct { 16 16 LexiconTypeID string `json:"$type,omitempty"` 17 17 Collection string `json:"collection" cborgen:"collection"` 18 - Did string `json:"did" cborgen:"did"` 18 + Repo string `json:"repo" cborgen:"repo"` 19 19 Record util.LexiconTypeDecoder `json:"record" cborgen:"record"` 20 20 Rkey string `json:"rkey" cborgen:"rkey"` 21 21 SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit"`
+6 -6
cmd/fakermaker/main.go
··· 441 441 } 442 442 443 443 _, err := comatproto.RepoPutRecord(context.TODO(), xrpcc, &comatproto.RepoPutRecord_Input{ 444 - Did: acc.Auth.Did, 444 + Repo: acc.Auth.Did, 445 445 Collection: "app.bsky.actor.profile", 446 446 Rkey: "self", 447 447 Record: lexutil.LexiconTypeDecoder{&appbsky.ActorProfile{ ··· 562 562 } 563 563 if _, err := comatproto.RepoCreateRecord(ctx, xrpcc, &comatproto.RepoCreateRecord_Input{ 564 564 Collection: "app.bsky.feed.post", 565 - Did: acc.Auth.Did, 565 + Repo: acc.Auth.Did, 566 566 Record: lexutil.LexiconTypeDecoder{&post}, 567 567 }); err != nil { 568 568 return err ··· 579 579 } 580 580 _, err := comatproto.RepoCreateRecord(context.TODO(), xrpcc, &comatproto.RepoCreateRecord_Input{ 581 581 Collection: "app.bsky.graph.follow", 582 - Did: xrpcc.Auth.Did, 582 + Repo: xrpcc.Auth.Did, 583 583 Record: lexutil.LexiconTypeDecoder{follow}, 584 584 }) 585 585 return err ··· 596 596 // TODO: may have already like? in that case should ignore error 597 597 _, err := comatproto.RepoCreateRecord(ctx, xrpcc, &comatproto.RepoCreateRecord_Input{ 598 598 Collection: "app.bsky.feed.like", 599 - Did: xrpcc.Auth.Did, 599 + Repo: xrpcc.Auth.Did, 600 600 Record: lexutil.LexiconTypeDecoder{&like}, 601 601 }) 602 602 return err ··· 612 612 } 613 613 _, err := comatproto.RepoCreateRecord(context.TODO(), xrpcc, &comatproto.RepoCreateRecord_Input{ 614 614 Collection: "app.bsky.feed.repost", 615 - Did: xrpcc.Auth.Did, 615 + Repo: xrpcc.Auth.Did, 616 616 Record: lexutil.LexiconTypeDecoder{repost}, 617 617 }) 618 618 return err ··· 644 644 } 645 645 _, err := comatproto.RepoCreateRecord(context.TODO(), xrpcc, &comatproto.RepoCreateRecord_Input{ 646 646 Collection: "app.bsky.feed.post", 647 - Did: xrpcc.Auth.Did, 647 + Repo: xrpcc.Auth.Did, 648 648 Record: lexutil.LexiconTypeDecoder{replyPost}, 649 649 }) 650 650 return err
+3 -3
cmd/gosky/main.go
··· 167 167 168 168 resp, err := comatproto.RepoCreateRecord(context.TODO(), xrpcc, &comatproto.RepoCreateRecord_Input{ 169 169 Collection: "app.bsky.feed.post", 170 - Did: auth.Did, 170 + Repo: auth.Did, 171 171 Record: lexutil.LexiconTypeDecoder{&appbsky.FeedPost{ 172 172 Text: text, 173 173 CreatedAt: time.Now().Format("2006-01-02T15:04:05.000Z"), ··· 508 508 out, err := comatproto.RepoCreateRecord(ctx, xrpcc, &comatproto.RepoCreateRecord_Input{ 509 509 LexiconTypeID: "com.atproto.feed.like", 510 510 Collection: "com.atproto.feed.like", 511 - Did: did, 511 + Repo: did, 512 512 Record: lexutil.LexiconTypeDecoder{ 513 513 Val: &appbsky.FeedLike{ 514 514 CreatedAt: time.Now().Format(util.ISO8601), ··· 728 728 729 729 resp, err := comatproto.RepoCreateRecord(context.TODO(), xrpcc, &comatproto.RepoCreateRecord_Input{ 730 730 Collection: "app.bsky.graph.follow", 731 - Did: xrpcc.Auth.Did, 731 + Repo: xrpcc.Auth.Did, 732 732 Record: lexutil.LexiconTypeDecoder{&follow}, 733 733 }) 734 734 if err != nil {
+1 -1
cmd/stress/main.go
··· 131 131 132 132 res, err := comatproto.RepoCreateRecord(context.TODO(), xrpcc, &comatproto.RepoCreateRecord_Input{ 133 133 Collection: "app.bsky.feed.post", 134 - Did: xrpcc.Auth.Did, 134 + Repo: xrpcc.Auth.Did, 135 135 Record: lexutil.LexiconTypeDecoder{&appbsky.FeedPost{ 136 136 Text: hex.EncodeToString(buf), 137 137 CreatedAt: time.Now().Format(time.RFC3339),
+4 -4
testing/utils.go
··· 224 224 ctx := context.TODO() 225 225 resp, err := atproto.RepoCreateRecord(ctx, u.client, &atproto.RepoCreateRecord_Input{ 226 226 Collection: "app.bsky.feed.post", 227 - Did: u.did, 227 + Repo: u.did, 228 228 Record: lexutil.LexiconTypeDecoder{&bsky.FeedPost{ 229 229 CreatedAt: time.Now().Format(time.RFC3339), 230 230 Text: body, ··· 251 251 ctx := context.TODO() 252 252 resp, err := atproto.RepoCreateRecord(ctx, u.client, &atproto.RepoCreateRecord_Input{ 253 253 Collection: "app.bsky.feed.post", 254 - Did: u.did, 254 + Repo: u.did, 255 255 Record: lexutil.LexiconTypeDecoder{&bsky.FeedPost{ 256 256 CreatedAt: time.Now().Format(time.RFC3339), 257 257 Text: body, ··· 274 274 ctx := context.TODO() 275 275 _, err := atproto.RepoCreateRecord(ctx, u.client, &atproto.RepoCreateRecord_Input{ 276 276 Collection: "app.bsky.feed.vote", 277 - Did: u.did, 277 + Repo: u.did, 278 278 Record: lexutil.LexiconTypeDecoder{&bsky.FeedLike{ 279 279 LexiconTypeID: "app.bsky.feed.vote", 280 280 CreatedAt: time.Now().Format(time.RFC3339), ··· 293 293 ctx := context.TODO() 294 294 resp, err := atproto.RepoCreateRecord(ctx, u.client, &atproto.RepoCreateRecord_Input{ 295 295 Collection: "app.bsky.graph.follow", 296 - Did: u.did, 296 + Repo: u.did, 297 297 Record: lexutil.LexiconTypeDecoder{&bsky.GraphFollow{ 298 298 CreatedAt: time.Now().Format(time.RFC3339), 299 299 Subject: did,