ssbc / ssb-friends

Manages the SSB social graph
MIT License
23 stars 6 forks source link

Follow / block logic #45

Closed arj03 closed 4 years ago

arj03 commented 4 years ago

I was trying to understand blocking and following and was reading the following line:

https://github.com/ssbc/ssb-friends/blob/master/contacts.js#L17

Basically you are either following or blocking someone. There doesn't seem to be a good way to say unfollow, or unblock without that being a follow? This makes it really hard to match the semantics of: https://github.com/ssbc/ssb-friends#ssb-friends.

arj03 commented 4 years ago

Patchwork seems to allow false, the same with patchcore.

arj03 commented 4 years ago

Seems the idea is that, follow+block+unblock should not equal follow

arj03 commented 4 years ago

This is just wierd, I think what got me is that it's a reduce function where you don't accumulate the values, you only take the latest.