this repo has no description
0
fork

Configure Feed

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

vet: LexiconTypeDecoder struct fields

+20 -20
+2 -2
cmd/gosky/bsky.go
··· 53 53 resp, err := comatproto.RepoCreateRecord(context.TODO(), xrpcc, &comatproto.RepoCreateRecord_Input{ 54 54 Collection: "app.bsky.graph.follow", 55 55 Repo: xrpcc.Auth.Did, 56 - Record: &lexutil.LexiconTypeDecoder{&follow}, 56 + Record: &lexutil.LexiconTypeDecoder{Val: &follow}, 57 57 }) 58 58 if err != nil { 59 59 return err ··· 111 111 resp, err := comatproto.RepoCreateRecord(context.TODO(), xrpcc, &comatproto.RepoCreateRecord_Input{ 112 112 Collection: "app.bsky.feed.post", 113 113 Repo: auth.Did, 114 - Record: &lexutil.LexiconTypeDecoder{&appbsky.FeedPost{ 114 + Record: &lexutil.LexiconTypeDecoder{Val: &appbsky.FeedPost{ 115 115 Text: text, 116 116 CreatedAt: time.Now().Format(util.ISO8601), 117 117 }},
+1 -1
cmd/gosky/main.go
··· 544 544 545 545 ctx := context.TODO() 546 546 547 - rec := &lexutil.LexiconTypeDecoder{&bsky.FeedGenerator{ 547 + rec := &lexutil.LexiconTypeDecoder{Val: &bsky.FeedGenerator{ 548 548 CreatedAt: time.Now().Format(util.ISO8601), 549 549 Description: desc, 550 550 Did: did,
+1 -1
cmd/stress/main.go
··· 135 135 res, err := comatproto.RepoCreateRecord(context.TODO(), xrpcc, &comatproto.RepoCreateRecord_Input{ 136 136 Collection: "app.bsky.feed.post", 137 137 Repo: xrpcc.Auth.Did, 138 - Record: &lexutil.LexiconTypeDecoder{&appbsky.FeedPost{ 138 + Record: &lexutil.LexiconTypeDecoder{Val: &appbsky.FeedPost{ 139 139 Text: hex.EncodeToString(buf), 140 140 CreatedAt: time.Now().Format(time.RFC3339), 141 141 }},
+6 -6
fakedata/generators.go
··· 115 115 Repo: acc.Auth.Did, 116 116 Collection: "app.bsky.actor.profile", 117 117 Rkey: "self", 118 - Record: &lexutil.LexiconTypeDecoder{&appbsky.ActorProfile{ 118 + Record: &lexutil.LexiconTypeDecoder{Val: &appbsky.ActorProfile{ 119 119 Description: &desc, 120 120 DisplayName: &name, 121 121 Avatar: avatar, ··· 201 201 if _, err := comatproto.RepoCreateRecord(ctx, xrpcc, &comatproto.RepoCreateRecord_Input{ 202 202 Collection: "app.bsky.feed.post", 203 203 Repo: acc.Auth.Did, 204 - Record: &lexutil.LexiconTypeDecoder{&post}, 204 + Record: &lexutil.LexiconTypeDecoder{Val: &post}, 205 205 }); err != nil { 206 206 return err 207 207 } ··· 218 218 _, err := comatproto.RepoCreateRecord(context.TODO(), xrpcc, &comatproto.RepoCreateRecord_Input{ 219 219 Collection: "app.bsky.graph.follow", 220 220 Repo: xrpcc.Auth.Did, 221 - Record: &lexutil.LexiconTypeDecoder{follow}, 221 + Record: &lexutil.LexiconTypeDecoder{Val: follow}, 222 222 }) 223 223 return err 224 224 } ··· 236 236 _, err := comatproto.RepoCreateRecord(ctx, xrpcc, &comatproto.RepoCreateRecord_Input{ 237 237 Collection: "app.bsky.feed.like", 238 238 Repo: xrpcc.Auth.Did, 239 - Record: &lexutil.LexiconTypeDecoder{&like}, 239 + Record: &lexutil.LexiconTypeDecoder{Val: &like}, 240 240 }) 241 241 return err 242 242 } ··· 252 252 _, err := comatproto.RepoCreateRecord(context.TODO(), xrpcc, &comatproto.RepoCreateRecord_Input{ 253 253 Collection: "app.bsky.feed.repost", 254 254 Repo: xrpcc.Auth.Did, 255 - Record: &lexutil.LexiconTypeDecoder{repost}, 255 + Record: &lexutil.LexiconTypeDecoder{Val: repost}, 256 256 }) 257 257 return err 258 258 } ··· 284 284 _, err := comatproto.RepoCreateRecord(context.TODO(), xrpcc, &comatproto.RepoCreateRecord_Input{ 285 285 Collection: "app.bsky.feed.post", 286 286 Repo: xrpcc.Auth.Did, 287 - Record: &lexutil.LexiconTypeDecoder{replyPost}, 287 + Record: &lexutil.LexiconTypeDecoder{Val: replyPost}, 288 288 }) 289 289 return err 290 290 }
+1 -1
labeler/admin.go
··· 34 34 Moderation: nil, 35 35 Repo: repoView, 36 36 // TODO: replace with actual record (from proxied backend) 37 - Value: &lexutil.LexiconTypeDecoder{&appbsky.FeedPost{}}, 37 + Value: &lexutil.LexiconTypeDecoder{Val: &appbsky.FeedPost{}}, 38 38 } 39 39 if uri != nil { 40 40 recordView.Uri = *uri
+3 -3
notifs/notifs.go
··· 214 214 rsub := "at://" + postAuthor.Did + "/app.bsky.feed.post/" + reposted.Rkey 215 215 216 216 return &appbskytypes.NotificationListNotifications_Notification{ 217 - Record: &lexutil.LexiconTypeDecoder{rec}, 217 + Record: &lexutil.LexiconTypeDecoder{Val: rec}, 218 218 IsRead: nrec.CreatedAt.Before(lastSeen), 219 219 IndexedAt: nrec.CreatedAt.Format(time.RFC3339), 220 220 Uri: "at://" + reposter.Did + "/app.bsky.feed.repost/" + repost.Rkey, ··· 254 254 rsub := "at://" + opAuthor.Did + "/app.bsky.feed.post/" + replyTo.Rkey 255 255 256 256 return &appbskytypes.NotificationListNotifications_Notification{ 257 - Record: &lexutil.LexiconTypeDecoder{rec}, 257 + Record: &lexutil.LexiconTypeDecoder{Val: rec}, 258 258 IsRead: nrec.CreatedAt.Before(lastSeen), 259 259 IndexedAt: nrec.CreatedAt.Format(time.RFC3339), 260 260 Uri: "at://" + author.Did + "/app.bsky.feed.post/" + fp.Rkey, ··· 282 282 } 283 283 284 284 return &appbskytypes.NotificationListNotifications_Notification{ 285 - Record: &lexutil.LexiconTypeDecoder{rec}, 285 + Record: &lexutil.LexiconTypeDecoder{Val: rec}, 286 286 IsRead: nrec.CreatedAt.Before(lastSeen), 287 287 IndexedAt: nrec.CreatedAt.Format(time.RFC3339), 288 288 Uri: "at://" + follower.Did + "/app.bsky.graph.follow/" + frec.Rkey,
+1 -1
pds/feedgen.go
··· 148 148 return nil, err 149 149 } 150 150 151 - out.Post.Record = &lexutil.LexiconTypeDecoder{rec} 151 + out.Post.Record = &lexutil.LexiconTypeDecoder{Val: rec} 152 152 153 153 return out, nil 154 154 }
+1 -1
pds/handlers.go
··· 467 467 return &comatprototypes.RepoGetRecord_Output{ 468 468 Cid: &ccstr, 469 469 Uri: "at://" + targetUser.Did + "/" + collection + "/" + rkey, 470 - Value: &lexutil.LexiconTypeDecoder{rec}, 470 + Value: &lexutil.LexiconTypeDecoder{Val: rec}, 471 471 }, nil 472 472 } 473 473
+4 -4
testing/utils.go
··· 231 231 resp, err := atproto.RepoCreateRecord(ctx, u.client, &atproto.RepoCreateRecord_Input{ 232 232 Collection: "app.bsky.feed.post", 233 233 Repo: u.did, 234 - Record: &lexutil.LexiconTypeDecoder{&bsky.FeedPost{ 234 + Record: &lexutil.LexiconTypeDecoder{Val: &bsky.FeedPost{ 235 235 CreatedAt: time.Now().Format(time.RFC3339), 236 236 Text: body, 237 237 Reply: &bsky.FeedPost_ReplyRef{ ··· 258 258 resp, err := atproto.RepoCreateRecord(ctx, u.client, &atproto.RepoCreateRecord_Input{ 259 259 Collection: "app.bsky.feed.post", 260 260 Repo: u.did, 261 - Record: &lexutil.LexiconTypeDecoder{&bsky.FeedPost{ 261 + Record: &lexutil.LexiconTypeDecoder{Val: &bsky.FeedPost{ 262 262 CreatedAt: time.Now().Format(time.RFC3339), 263 263 Text: body, 264 264 }}, ··· 281 281 _, err := atproto.RepoCreateRecord(ctx, u.client, &atproto.RepoCreateRecord_Input{ 282 282 Collection: "app.bsky.feed.vote", 283 283 Repo: u.did, 284 - Record: &lexutil.LexiconTypeDecoder{&bsky.FeedLike{ 284 + Record: &lexutil.LexiconTypeDecoder{Val: &bsky.FeedLike{ 285 285 LexiconTypeID: "app.bsky.feed.vote", 286 286 CreatedAt: time.Now().Format(time.RFC3339), 287 287 Subject: post, ··· 300 300 resp, err := atproto.RepoCreateRecord(ctx, u.client, &atproto.RepoCreateRecord_Input{ 301 301 Collection: "app.bsky.graph.follow", 302 302 Repo: u.did, 303 - Record: &lexutil.LexiconTypeDecoder{&bsky.GraphFollow{ 303 + Record: &lexutil.LexiconTypeDecoder{Val: &bsky.GraphFollow{ 304 304 CreatedAt: time.Now().Format(time.RFC3339), 305 305 Subject: did, 306 306 }},