ssbc / ssb-replication-scheduler

Plugin to trigger replication of feeds identified as friendly in the social graph
8 stars 1 forks source link

(groups): Don't forward Alice's metafeed tree to Bob if Alice blocks Bob #15

Open staltz opened 1 year ago

staltz commented 1 year ago

Say I follow both Alice and Bob, but Alice blocks Bob.

It's currently a feature in ssb-replication-scheduler that we won't forward Alice's (main) feed to Bob, and it's implemented here:

https://github.com/ssbc/ssb-replication-scheduler/blob/6a01b2f718b08d5990810a8da1044d4b8703f651/index.js#L49

But that's only for main feeds. Bob is still capable of replicating Alice's metafeed tree.

We should support preventing Bob from getting Alice's metafeed tree (any of Alice's feeds).

But there is an exception to this: Bob can always get Alice's group leaf feed (and the whole branch above that) if both Alice and Bob are in the same group.