this repo has no description
0
fork

Configure Feed

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

only traverse cbor blocks when running mst diff (#425)

I spaced the fact that we include proper dag-cbor cid links to images
which are not actually included in the car slices. In the case where
someone drops a reference to an image (deletes an image post, or updates
their profile picture) then we would hit this 'ipld not found' error on
the image cid (since we never got it in the first place).

Here, we skip any CID that isnt CBOR, This is a reasonable assumption to
make for now, unless we start dangling random cbor graphs off of the
MST, at which point ill probably need to get more clever (I'd really
rather not).

authored by

Whyrusleeping and committed by
GitHub
32b3dce0 fa7db1ca

+4
+4
carstore/bs.go
··· 905 905 } 906 906 907 907 if err := cbg.ScanForLinks(bytes.NewReader(oblk.RawData()), func(lnk cid.Cid) { 908 + if lnk.Prefix().Codec != cid.DagCBOR { 909 + return 910 + } 911 + 908 912 if !keepset[lnk] { 909 913 dropset[lnk] = true 910 914 queue = append(queue, lnk)