this repo has no description
0
fork

Configure Feed

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

fix build errors after #commit.prev removal

+1 -13
+1 -13
events/dbpersist.go
··· 332 332 return nil, err 333 333 } 334 334 335 - var prev *models.DbCID 336 - if evt.Prev != nil && evt.Prev.Defined() { 337 - prev = &models.DbCID{CID: cid.Cid(*evt.Prev)} 338 - } 339 - 340 335 var blobs []byte 341 336 if len(evt.Blobs) > 0 { 342 337 b, err := json.Marshal(evt.Blobs) ··· 353 348 354 349 rer := RepoEventRecord{ 355 350 Commit: &models.DbCID{CID: cid.Cid(evt.Commit)}, 356 - Prev: prev, 351 + //Prev 357 352 Repo: uid, 358 353 Type: "repo_append", // TODO: refactor to "#commit"? can "rebase" come through this path? 359 354 Blobs: blobs, ··· 608 603 return nil, err 609 604 } 610 605 611 - var prevCID *lexutil.LexLink 612 - if rer != nil && rer.Prev != nil && rer.Prev.CID.Defined() { 613 - tmp := lexutil.LexLink(rer.Prev.CID) 614 - prevCID = &tmp 615 - } 616 - 617 606 var ops []*comatproto.SyncSubscribeRepos_RepoOp 618 607 if err := json.Unmarshal(rer.Ops, &ops); err != nil { 619 608 return nil, err ··· 623 612 Seq: int64(rer.Seq), 624 613 Repo: did, 625 614 Commit: lexutil.LexLink(rer.Commit.CID), 626 - Prev: prevCID, 627 615 Time: rer.Time.Format(util.ISO8601), 628 616 Blobs: blobCIDs, 629 617 Rebase: rer.Rebase,