An atproto PDS written in Go

cid deletion fix (#2)

Changed files
+4 -1
server
+4 -1
server/repo.go
···
ops := make([]*atproto.SyncSubscribeRepos_RepoOp, 0, len(diffops))
for _, op := range diffops {
+
var c cid.Cid
switch op.Op {
case "add", "mut":
kind := "create"
···
kind = "update"
}
+
c = op.NewCid
ll := lexutil.LexLink(op.NewCid)
ops = append(ops, &atproto.SyncSubscribeRepos_RepoOp{
Action: kind,
···
})
case "del":
+
c = op.OldCid
ll := lexutil.LexLink(op.OldCid)
ops = append(ops, &atproto.SyncSubscribeRepos_RepoOp{
Action: "delete",
···
})
}
-
blk, err := dbs.Get(context.TODO(), op.NewCid)
+
blk, err := dbs.Get(context.TODO(), c)
if err != nil {
return nil, err
}