ssbc / ssb-meta-feeds

10 stars 0 forks source link

Finding a friend's subfeed #79

Closed staltz closed 1 year ago

staltz commented 1 year ago

Add a find method to be able to find "my friends helsinki feed"

cc @mixmix

I think this could be achieved with branchStream, although branch stream is going to return all the intermediate branches, like

And we might need a simpler API that allows us to just get:

MAYBE. Because we might also need the friend's root metafeed (say we need to calculate the shard feed for their helsinki group feed, and to calculate shards we need to know the root MF ID).

arj03 commented 1 year ago

Isn't this triangulate?

staltz commented 1 year ago

Yes I think we could close this issue. getTree has been pretty useful: https://github.com/ssbc/ssb-box2/blob/40399820ad007e058594eaf0e18633a5813d83cd/monitor.js#L66